Use id not link text (buttons aren't links) to copy prof. pages
authorW. Trevor King <wking@drexel.edu>
Wed, 30 Jun 2010 13:05:19 +0000 (09:05 -0400)
committerW. Trevor King <wking@drexel.edu>
Wed, 30 Jun 2010 13:05:19 +0000 (09:05 -0400)
sitecore/prof/import.py

index 18da8a706a4f0f300ec249f1ee2f9c9c1dbd159f..cd857a23a619617707f60e819d1d1792a9d11922 100644 (file)
@@ -71,7 +71,7 @@ class ProfessorAdder (object):
         name.send_keys(
             '/sitecore/content/Home/physics/contact/facultyDirectory/%s %s'
             % (prof.name.first_middle, prof.name.last))
-        self.s.w.find_element_by_link_text('Copy').click()
+        self.s.w.find_element_by_id('OK').click()
         time.sleep(self.s.wait_time)
         current_window = self.s.w.get_current_window_handle()
         self.s.logger.info('handled copy popup %s, back to %s'