示例#1
0
 def click_button(self, name):
     """
     Clicks the button
     """
     btn_css = 'div#page-notification button.action-{}'.format(name.lower())
     EmptyPromise(lambda: self.q(css=btn_css).visible,
                  '{} button is visible'.format(name)).fulfill()
     press_the_notification_button(self, name)
示例#2
0
 def save_changes(self, wait_for_confirmation=True):
     """
     Clicks save button, waits for confirmation unless otherwise specified
     """
     press_the_notification_button(self, "save")
     if wait_for_confirmation:
         self.wait_for_element_visibility(
             '#alert-confirmation-title',
             'Save confirmation message is visible')
示例#3
0
 def save_changes(self, wait_for_confirmation=True):
     """
     Clicks save button, waits for confirmation unless otherwise specified
     """
     press_the_notification_button(self, "save")
     if wait_for_confirmation:
         self.wait_for_element_visibility(
             '#alert-confirmation-title',
             'Save confirmation message is visible'
         )
示例#4
0
 def click_button(self, name):
     """
     Clicks the button
     """
     btn_css = 'div#page-notification button.action-{}'.format(name.lower())
     EmptyPromise(
         lambda: self.q(css=btn_css).visible,
         '{} button is visible'.format(name)
     ).fulfill()
     press_the_notification_button(self, name)
示例#5
0
 def save_changes(self, wait_for_confirmation=True):
     """
     Clicks save button, waits for confirmation unless otherwise specified
     """
     press_the_notification_button(self, "save")
     if wait_for_confirmation:
         self.wait_for_element_visibility(
             '#alert-confirmation-title',
             'Save confirmation message is visible')
     # After visibility an ajax call is in process, waiting for that to complete
     self.wait_for_ajax()
示例#6
0
 def save_changes(self, wait_for_confirmation=True):
     """
     Clicks save button, waits for confirmation unless otherwise specified
     """
     press_the_notification_button(self, "save")
     if wait_for_confirmation:
         self.wait_for_element_visibility(
             '#alert-confirmation-title',
             'Save confirmation message is visible'
         )
     # After visibility an ajax call is in process, waiting for that to complete
     self.wait_for_ajax()
示例#7
0
 def cancel(self):
     press_the_notification_button(self, "Cancel")
示例#8
0
 def save(self):
     press_the_notification_button(self, "Save")
示例#9
0
 def save(self):
     """
     Click on save settings button.
     """
     press_the_notification_button(self, "Save")
示例#10
0
 def cancel(self):
     press_the_notification_button(self, "Cancel")
示例#11
0
 def save(self):
     press_the_notification_button(self, "Save")
示例#12
0
 def cancel(self):
     """
     Click on cancel settings button.
     """
     press_the_notification_button(self, "Cancel")
示例#13
0
 def save(self):
     """
     Click on save settings button.
     """
     press_the_notification_button(self, "Save")
示例#14
0
 def cancel(self):
     """
     Click on cancel settings button.
     """
     press_the_notification_button(self, "Cancel")