def auth(driver, config): page_object = BasePage(driver, config) login = config['email'] paswd = config['password'] locator = basic_locators.BasePageLocators() page_object.click(locator.AUTH_BUTTON) page_object.find(locator.EMAIL).send_keys(login) page_object.find(locator.PASSWORD).send_keys(paswd) page_object.click(locator.ACCEPT) return MainPage(driver, config)
def incorrect_input(driver, config): page_object = BasePage(driver, config) login = '******' paswd = 'Incorrect_user_password' config['fake_email'] = login locator = basic_locators.BasePageLocators() page_object.click(locator.AUTH_BUTTON) page_object.find(locator.EMAIL).send_keys(login) page_object.find(locator.PASSWORD).send_keys(paswd) page_object.click(locator.ACCEPT) return MainPage(driver, config)