Exemple #1
0
def is_profile_page_balance_block_present():
    profile = ProfilePage(get_driver())
    profile.open_page()
    return profile.get_balance(
    ) == balance and profile.is_balance_icon_present(
    ) and profile.is_balance_discount_present(
    ) and profile.is_balance_pay_button_present()
Exemple #2
0
def is_profile_page_settings_block_present():
    profile = ProfilePage(get_driver())
    profile.open_page()
    return profile.is_settings_icon_present(
    ) and profile.is_settings_change_login_button_present(
    ) and profile.is_settings_change_password_button_present(
    ) and profile.is_settings_delete_account_button_present()
Exemple #3
0
 def test_log_in_with_facebook(self):
     driver = self.driver
     homePage = HomePage(driver)
     homePage.slides_item_is_displayed()
     homePage.click_account_icon()
     homePage.account_icon_dropdown_is_displayed()
     homePage.click_login_label()
     loginPage = LoginPage(driver)
     loginPage.register_button_is_displayed()
     loginPage.click_facebook_button()
     loginPage.accept_facebook_cookie_policy()
     loginPage.send_login_email()
     loginPage.send_login_password()
     loginPage.click_facebook_button()
     profilePage = ProfilePage(driver)
     profilePage.purchased_tab_is_displayed()
Exemple #4
0
def is_profile_page_tp_block_present():
    profile = ProfilePage(get_driver())
    profile.open_page()
    return profile.get_tp() == tariff_plan and profile.is_tp_icon_present()
def test_profile_page(browser):

    profile = ProfilePage(browser)

    Tests.test_login.test_autorization(browser)

    profile.click_profile_button()
    profile.click_setting_button()

    # russian
    profile.select_RU()

    assert profile.profile_title().text == "Мой профиль"

    #image = driver.find_element_by_xpath("//app-profile-page/div[2]/div/div[1]/div/img")
    # image.click()
    # load_image = driver.find_element_by_xpath("//p[@id='load']")
    # load_image.click()п
    # добавить загрузку картинки профиля

    assert profile.client_title().text == "Name LastName"

    assert profile.status_title().text == "Статус"

    assert profile.account_title().text == "Активный"

    assert profile.client_status_title().text == "Клиент Сбербанка"
def user_enters_gross_annual_salary_as_100000(browser, value):
    """user enters "Gross Annual Salary" as "100000"."""
    profile = ProfilePage(browser)
    profile.enter_grossAnnual_salary(value)
def user_selects_investment_experience_as_yes(browser):
    """user selects Investment experience as "Yes"."""
    profile = ProfilePage(browser)
    profile.click_familiar_Yes_radioBtn()
def user_enters_dob_as_01011995(browser, dob):
    """user enters "DOB" as "01011995"."""
    profile = ProfilePage(browser)
    profile.enter_dob(dob)
def user_clicks_on_next_question(browser):
    """user clicks on "Next question"."""
    profile = ProfilePage(browser)
    profile.click_next_btn()
def user_clicks_on_begin(browser):
    """user clicks on "Begin"."""
    time.sleep(2)
    profile = ProfilePage(browser)
    profile.click_begin_btn()