def test010(start_browser): """ Test type = negative Login with NONE password :param start_browser: browser run """ driver = start_browser login_input(driver, login="******") accept_button_click(driver) current_url = driver.current_url error_text = get_warning_message(driver) correct_error = "Warning: No match for E-Mail Address and/or Password." logging.debug("Current web url is {}".format(current_url)) logging.debug("Error text is {}".format(error_text)) assert correct_error == error_text
def test009(start_browser): """ Test type = negative Login with NONE E-Mail Address :param start_browser: browser run """ driver = start_browser password_input(driver, password="******") accept_button_click(driver) current_url = driver.current_url error_text = get_warning_message(driver) correct_error = "Warning: Your account has exceeded allowed " \ "number of login attempts. Please try again in 1 hour." logging.debug("Current web url is {}".format(current_url)) logging.debug("Error text is {}".format(error_text)) assert correct_error == error_text
def test005(start_browser, address): """ Test type - negative Login with invalid password :param address: parametrized opencart address :param start_browser: browser run """ driver = start_browser driver.get(address) login_input(driver, login="******") password_input(driver, password="******") accept_button_click(driver) current_url = driver.current_url error_text = get_warning_message(driver) correct_error = "Warning: No match for E-Mail Address and/or Password." logging.debug("Current web url is {}".format(current_url)) logging.debug("Error text is {}".format(error_text)) assert correct_error == error_text