19 lines
413 B
Python
19 lines
413 B
Python
|
from behave import then, when, given
|
||
|
|
||
|
from browserdriver import BrowserDriver
|
||
|
|
||
|
|
||
|
@given('I have a chrome driver')
|
||
|
def step_impl(context):
|
||
|
context.driver = BrowserDriver.get("chrome")
|
||
|
|
||
|
|
||
|
@when('I navigate to test.io')
|
||
|
def step_impl(context):
|
||
|
context.driver.get("https://test.io")
|
||
|
|
||
|
|
||
|
@then('The page is displayed')
|
||
|
def step_impl(context):
|
||
|
assert context.driver.title == "QA Testing as a Service | test IO"
|