def test_lost_password_and_return(self): login_page = LoginPage(self.driver) login_page.set_login(self.FAIL_NUMBER) login_page.press_forget_password() assert login_page.save_phone_number_in_forget_input(self.FAIL_NUMBER), "Has no phone phone in input" login_page.click_back_in_forget_pass() login_page.click_submit() assert login_page.error_has_message("Введіть ваш пароль"), "Has no popup 'Введіть ваш пароль'"
def test_press_enter_fail_login_data(self, login, password, message): login_page = LoginPage(self.driver) login_page.set_login(login) login_page.set_password(password) login_page.press_enter() assert login_page.error_has_message(message), "Has no popup"
def login_page(self): if not self.login_obj: self.login_obj = LoginPage(self.driver) return self.login_obj
def test_load_page(self): login_page = LoginPage(self.driver) assert login_page.at_page(), "Title is wrong"
def step_impl(context): page = LoginPage(context.driver) page.open() page.login(context.email, context.credentials[context.email])