From: W. Trevor King Date: Thu, 1 Jul 2010 01:05:45 +0000 (-0400) Subject: Avoid name/filename collision in prof/import's create_prof_page X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=0fb8d9a1b3f5250bf16f9ad854c8696019c2d555;p=sitecorepy.git Avoid name/filename collision in prof/import's create_prof_page --- diff --git a/sitecore/prof/import.py b/sitecore/prof/import.py index bd8c5c4..3b949a6 100644 --- a/sitecore/prof/import.py +++ b/sitecore/prof/import.py @@ -131,9 +131,9 @@ class ProfessorAdder (object): self.s.logger.info('handling copy popup %s (from %s, old %s)' % (popup, windows, current_window)) self.s.w.switch_to_window(popup) - name = self.s.w.find_element_by_id('Filename') - name.clear() - name.send_keys( + filename = self.s.w.find_element_by_id('Filename') + filename.clear() + filename.send_keys( '/sitecore/content/Home/physics/contact/facultyDirectory/%s' % name) self.s.w.find_element_by_id('OK').click()