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)
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)
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()
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()
def cancel(self): press_the_notification_button(self, "Cancel")
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): """ Click on cancel settings button. """ press_the_notification_button(self, "Cancel")