Use ID vs link text to open Home ribbon strip when saving
authorW. Trevor King <wking@drexel.edu>
Thu, 1 Jul 2010 03:05:04 +0000 (23:05 -0400)
committerW. Trevor King <wking@drexel.edu>
Thu, 1 Jul 2010 03:05:04 +0000 (23:05 -0400)
sitecore/__init__.py

index 84e3bed50617639dcee41f1c6255c93525d82db9..90a38920f97da6ceb2e576a0b689c251594d2bd2 100755 (executable)
@@ -132,6 +132,8 @@ class SiteCoreConnection (object):
 
     def save_section(self):
         self.logger.info('saving current section')
+        self.w.find_element_by_id('Ribbon_Nav_HomeStrip').click()
+        time.sleep(self.wait_time)
         self.w.find_element_by_link_text('Save').click()
         time.sleep(self.wait_time)