Esempio n. 1
0
def step_impl(context):
    context.execute_steps(u'''
            Given The user is logged in the application
        ''')
    accounts_table = WebDriverWait(context, 5).until(
        expected_conditions.visibility_of(AccountFields.account_list(context)))
    HighlightElements.highlight(context, accounts_table)
Esempio n. 2
0
def step_impl(context):
    context.driver.switch_to_frame('bzeMainIframe')
    offerings_overview = WebDriverWait(context.driver, 10).until(
        expected_conditions.element_to_be_clickable(
            OfferingsLocators.OVERVIEW))
    HighlightElements.highlight(context, offerings_overview)
    assert offerings_overview.text.startswith(
        'Overview'), "The Overview section is not present"
    context.driver.switch_to.default_content()
Esempio n. 3
0
def step_impl(context, account_type):
    # find acc types on the screen
    account_types = AccountFields.account_types(context)
    # if acc type equals the account_type from scenario, save its balance type to context
    for acc_type in account_types:
        HighlightElements.highlight(context, acc_type)
        if acc_type.text == account_type:
            # todo account value type should be read from the same row as account type (element doesn't support index!)
            context.acc_value_type = AccountFields.account_value_type(context)
            # HighlightElements.highlight(context, AccountFields.account_value_type(context))
            break
        else:
            continue
Esempio n. 4
0
def step_impl(context):
    # the application page is loaded
    WebDriverWait(context.driver, 10).until(
        expected_conditions.visibility_of(LoginPage.ebanking_title(context)))
    LoginPage.demo_app_link(context).click()
    # close the welcome message
    WebDriverWait(context.driver, 10).until(
        expected_conditions.presence_of_element_located(
            CommonLocators.WELCOME_MSG)).click()
    # check username
    username = BasePage.user_menu(context)
    HighlightElements.highlight(context, username)
    assert username.text == 'DG', "Username is incorrect"
def step_impl(context):
    username = BasePage.user_menu(context)
    HighlightElements.highlight(context, username)
    assert username.text == 'UBS Demo', "Username is incorrect"
def step_impl(context):
    acc_trsf_menu = BasePage.acc_transfer(context)
    HighlightElements.highlight(context, acc_trsf_menu)
    acc_trsf_menu.click()
def step_impl(context):
    payments_top_menu = BasePage.top_nav_payments(context)
    HighlightElements.highlight(context, payments_top_menu)
    ActionChains(context.driver).move_to_element(payments_top_menu).perform()
    WebDriverWait(context.driver, 10).until(
        expected_conditions.visibility_of(BasePage.payments_menu(context)))
def step_impl(context):
    offerings_top_menu = BasePage.top_nav_offerings(context)
    HighlightElements.highlight(context, offerings_top_menu)
    offerings_top_menu.click()
Esempio n. 9
0
def step_impl(context):
    payments_top_menu = BasePage.top_nav_payments(context)
    HighlightElements.highlight(context, payments_top_menu)
    payments_top_menu.click()
    WebDriverWait(context.driver, 5).until((expected_conditions.visibility_of(
        BasePage.payments_dropdown(context))))