replaycli-py/api/chrome/features/steps/steps.py

16 lines
469 B
Python

from behave import *
from cli import Chrome
@given ("the Chrome client")
def step_impl (context):
context.client = Chrome()
@when ("the Start method is called")
def step_impl (context):
# context._return = None
context._return = context.client.start()
@then ("Google Chrome should open")
def step_impl (context):
print (f"\n-----------\n{context._return}\n------------\n")
assert context._return == "", "Google Chrome did not opened as expected."