Пример #1
0
def tmall_auth_page(driver):
    page = AuthPage(driver)
    page.login.click()
    page.email = email
    page.password = password
    page.auth_btn.click()
    page.wait_page_loaded()
    return page
Пример #2
0
def test_tmall_auth_page(selenium):
    page = AuthPage(selenium)
    page.login.click()
    login_page = page.get_current_url()

    msg = 'Не удалось перейти на страницу входа в ЛК.'
    assert 'login.aliexpress.com' in login_page, msg

    page.email = email
    page.password = password
    page.auth_btn.click()
    page.wait_page_loaded()
    acc_name = page.lk_in.get_attribute('innerText')

    assert acc_name == email.split('@')[0]