Пример #1
0
def check_give_advice_button_is_not_present(driver):

    user_advice_page = UserAdvicePage(driver)
    team_advice_page = TeamAdvicePage(driver)
    final_advice_page = FinalAdvicePage(driver)
    driver.implicitly_wait(0)
    assert not user_advice_page.is_advice_button_enabled()
    assert not team_advice_page.is_advice_button_enabled()
    assert not final_advice_page.is_advice_button_enabled()
    driver.implicitly_wait(60)
Пример #2
0
def combine_all_advice(driver):  # noqa
    UserAdvicePage(driver).click_combine_advice()
Пример #3
0
def click_items_in_advice_view(driver, context):  # noqa
    context.number_of_advice_items_clicked = UserAdvicePage(driver).click_on_all_checkboxes()
Пример #4
0
def click_give_advice(driver):
    UserAdvicePage(driver).click_give_advice()
Пример #5
0
def select_all_items_in_group(driver, group):
    UserAdvicePage(driver).click_grouped_view_checkboxes(group)
def check_give_advice_button_is_not_present(driver):
    driver.implicitly_wait(0)
    assert not UserAdvicePage(driver).is_advice_button_enabled()
    assert not TeamAdvicePage(driver).is_advice_button_enabled()
    assert not FinalAdvicePage(driver).is_advice_button_enabled()
    driver.implicitly_wait(60)