Exemple #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)
Exemple #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')
 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'
         )
 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)
Exemple #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()
Exemple #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()
Exemple #7
0
 def cancel(self):
     press_the_notification_button(self, "Cancel")
Exemple #8
0
 def save(self):
     press_the_notification_button(self, "Save")
 def save(self):
     """
     Click on save settings button.
     """
     press_the_notification_button(self, "Save")
 def cancel(self):
     press_the_notification_button(self, "Cancel")
 def save(self):
     press_the_notification_button(self, "Save")
 def cancel(self):
     """
     Click on cancel settings button.
     """
     press_the_notification_button(self, "Cancel")
 def save(self):
     """
     Click on save settings button.
     """
     press_the_notification_button(self, "Save")
Exemple #14
0
 def cancel(self):
     """
     Click on cancel settings button.
     """
     press_the_notification_button(self, "Cancel")