Esempio n. 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)
Esempio n. 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')
Esempio n. 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'
         )
Esempio n. 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)
Esempio n. 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()
Esempio n. 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()
Esempio n. 7
0
 def cancel(self):
     press_the_notification_button(self, "Cancel")
Esempio n. 8
0
 def save(self):
     press_the_notification_button(self, "Save")
Esempio n. 9
0
 def save(self):
     """
     Click on save settings button.
     """
     press_the_notification_button(self, "Save")
Esempio n. 10
0
 def cancel(self):
     press_the_notification_button(self, "Cancel")
Esempio n. 11
0
 def save(self):
     press_the_notification_button(self, "Save")
Esempio n. 12
0
 def cancel(self):
     """
     Click on cancel settings button.
     """
     press_the_notification_button(self, "Cancel")
Esempio n. 13
0
 def save(self):
     """
     Click on save settings button.
     """
     press_the_notification_button(self, "Save")
Esempio n. 14
0
 def cancel(self):
     """
     Click on cancel settings button.
     """
     press_the_notification_button(self, "Cancel")