Example #1
0
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'))
Example #2
0
 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'))
Example #3
0
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'))
Example #4
0
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'))
Example #5
0
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'))