Test for the new method.
This commit is contained in:
@@ -66,3 +66,14 @@ def step_impl(context):
|
||||
def step_impl(context):
|
||||
assert context.close_return == "", "The tab did not closed correctly."
|
||||
context.client.stop()
|
||||
|
||||
|
||||
# ========================== Chrome.eval () ==========================
|
||||
@when("the eval method is called upon the tab id with a command")
|
||||
def step_impl(context):
|
||||
context.eval_value = context.client.eval(context.tab_id1, "2+2")
|
||||
|
||||
@then("this command must give back a value")
|
||||
def step_impl(context):
|
||||
assert 'value' in context.eval_value['result']['result'], "The command did not worked as expected."
|
||||
context.client.stop()
|
||||
Reference in New Issue
Block a user