示例#1
0
def click_request_empty_pool(browser, session_vars):
    end_time = time.time() + 15
    while True:
        if ApplicationPO(browser).toast_visible():
            session_vars['doc_in_pool'] = ApplicationPO(browser).waiter().get_last_application_id()
            return True
        time.sleep(1.5)
        ApplicationPO(browser).click_request_button()
        if time.time() > end_time:
            break
    raise TimeoutException(f"Infinite requests of applications")
示例#2
0
def verify_page(browser):
    ApplicationPO(browser).waiter().verify_application_request_container()
示例#3
0
def check_toast(browser):
    page = ApplicationPO(browser).waiter()
    page.verify_toast()
示例#4
0
def verify_domain_in_filters(browser, domain_name):
    ApplicationPO(browser).waiter().verify_chosen_domain(domain_name)
def step_impl(browser):
    ApplicationPO(browser).goto_app_on_hold()
示例#6
0
def choose_domain_in_filters(browser, domain_name):
    page = ApplicationPO(browser).waiter()
    page.tap_domain_filters_btn()
    page.open_domain_selector()
    page.choose_domain(domain_name)
示例#7
0
def step_impl(browser):
    ApplicationPO(browser).click_request_button()
示例#8
0
def step_impl(browser, session_vars):
    ApplicationPO(browser).waiter().verify_lack_of_application(session_vars['doc_in_pool'])
示例#9
0
def wait_btn(browser):
    ApplicationPO(browser).waiter()
示例#10
0
def step_impl(browser):
    ApplicationPO(browser).waiter()
示例#11
0
def click_app(browser, session_vars):
    ApplicationPO(browser).goto_app_form(session_vars['doc_in_pool'])
示例#12
0
def check_formed_app(browser, session_vars):
    ApplicationPO(browser).verify_application(session_vars['doc_in_pool'])
示例#13
0
def verify_empty_doc(browser, session_vars):
    ApplicationPO(browser).waiter().verify_empty_application(session_vars['doc_in_pool'])
示例#14
0
def wait_active_request_btn(browser):
    ApplicationPO(browser).wait_active_request_button()