def waitNewRuleModal(browser): WebDriverWait(browser, 10).until( Condition.visibility_of_element_located( (By.ID, 'automation-rule-new-modal'))) modals.waitForOpened( browser.find_element_by_id('automation-rule-new-modal')) return NewRuleModal( browser.find_element_by_id('automation-rule-new-modal'))
def waitExtraQueryParameterModal(self): WebDriverWait(self.browser, 10).until( Condition.visibility_of_element_located( (By.ID, 'plugin-extra-queries-configure-modal'))) modals.waitForOpened( self.browser.find_element_by_id( 'plugin-extra-queries-configure-modal')) return self.ExtraQueryParameterModal( self.browser.find_element_by_id( 'plugin-extra-queries-configure-modal'))
def waitRemoveRuleConfirmationModal(browser): WebDriverWait(browser, 10).until(Condition.visibility_of_element_located((By.ID, 'confirmation-modal'))) modals.waitForOpened(browser.find_element_by_id('confirmation-modal')) return RemoveRuleConfirmationModal(browser.find_element_by_id('confirmation-modal'))
def waitRemoveRuleConfirmationModal(browser): WebDriverWait(browser, 10).until( Condition.visibility_of_element_located((By.ID, 'confirmation-modal'))) modals.waitForOpened(browser.find_element_by_id('confirmation-modal')) return RemoveRuleConfirmationModal( browser.find_element_by_id('confirmation-modal'))
def waitEditRuleModal(browser): WebDriverWait(browser, 10).until(Condition.visibility_of_element_located((By.ID, 'edit-automation-rule-modal'))) modals.waitForOpened(browser.find_element_by_id('edit-automation-rule-modal')) return EditRuleModal(browser.find_element_by_id('edit-automation-rule-modal'))