From 1e38a7f10361549077c70f918511ca8ee7a98bb6 Mon Sep 17 00:00:00 2001 From: "W. Trevor King" Date: Wed, 30 Jun 2010 09:05:19 -0400 Subject: [PATCH] Use id not link text (buttons aren't links) to copy prof. pages --- sitecore/prof/import.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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' -- 2.26.2