def step_impl(context): page = LoginPage(context.driver) page.submit_button.click()
def step_impl(context, content, field_name): page = LoginPage(context.driver) page.form_field(field_name).send_keys(content)
def step_impl(context): context.driver = webdriver.Chrome('C:/chromedriver.exe') page = LoginPage(context.driver) context.driver.get(page.url)
def step_impl(context): expected_url = LoginPage(context.driver).url assert context.driver.current_url == expected_url
def step_impl(context): page = LoginPage(context.driver) assert page.form.is_displayed()