From: W. Trevor King Date: Wed, 30 Jun 2010 13:05:19 +0000 (-0400) Subject: Use id not link text (buttons aren't links) to copy prof. pages X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=1e38a7f10361549077c70f918511ca8ee7a98bb6;p=sitecorepy.git Use id not link text (buttons aren't links) to copy prof. pages --- diff --git a/sitecore/prof/import.py b/sitecore/prof/import.py index 18da8a7..cd857a2 100644 --- a/sitecore/prof/import.py +++ b/sitecore/prof/import.py @@ -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'