def test_about_us(): home_actions = HomeActions(driver) home_actions.click_on_home_option() main_header_actions = MainHeaderActions(driver) main_header_actions.verify_text_title('PRODUCT STORE') about_actions = AboutActions(driver) about_actions.click_on_about_option() about_actions.click_on_play_option()
def test_sign_up_form(title, username, password): home_actions = HomeActions(driver) home_actions.click_on_home_option() main_header_actions = MainHeaderActions(driver) main_header_actions.verify_text_title(title) sing_actions = SingUpActions(driver) sing_actions.click_on_sign_option() sing_actions.fill_sign_form(username, password)
def test_log_in_form(title, username, password): home_actions = HomeActions(driver) home_actions.click_on_home_option() main_header_actions = MainHeaderActions(driver) main_header_actions.verify_text_title(title) login_actions = LogInActions(driver) login_actions.click_on_login_option() login_actions.fill_login_form(username, password)
def test_fill_out_contact_form(title, option, name, email, message): home_actions = HomeActions(driver) home_actions.click_on_home_option() main_header_actions = MainHeaderActions(driver) main_header_actions.verify_text_title(title) contact_actions = ContactActions(driver) contact_actions.click_contact_option(option) contact_actions.fill_contact_form(name, email, message)
def test_buy_phone(title, name, price): home_actions = HomeActions(driver) home_actions.click_on_home_option() main_header_actions = MainHeaderActions(driver) main_header_actions.verify_text_title(title) home_actions.click_prod_option(name) prod_actions = ProdActions(driver) prod_actions.click_on_prod_option(name, price)
def test_buy_monitor(title, name, price): home_actions = HomeActions(driver) home_actions.click_on_home_option() main_header_actions = MainHeaderActions(driver) main_header_actions.verify_text_title(title) categories_actions = CategoriesActions(driver) categories_actions.verify_cat_title() categories_actions.click_on_monitors_option() home_actions.click_prod_option(name) prod_actions = ProdActions(driver) prod_actions.click_on_prod_option(name, price)
def teardown(): home_actions = HomeActions(driver) home_actions.save_screenshot() home_actions.close_browser()