예제 #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
파일: settings.py 프로젝트: gopinath81/vmss
 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")