Fixing some tests.

anticaptcha
Pedro de Oliveira Guedes 2022-01-06 12:46:24 -03:00
parent 2d5819f331
commit 4a0a23cd56
1 changed files with 3 additions and 3 deletions

View File

@ -80,7 +80,7 @@ def step_impl(context):
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
@given ("the id of a new Google Chrome tab opened in google.com")
def setp_impl(context):
context.tab_id = context.client.new()
context.tab_id = context.client.new("https://www.google.com/")
@when ("the eval method is called upon the tab id with a JS command")
def step_impl(context):
@ -111,7 +111,7 @@ Therefore, there will be no tests for this method, at least for now.
# ========================== Chrome.open_tabs () ==========================
@given("at least one Google Chrome tab is opened")
def step_impl(context):
context.tab_id1 = context.client.new()
context.tab_id1 = context.client.new("https://www.google.com/")
context.tab_id2 = context.client.new("https://www.youtube.com")
@when("the open_tabs method is called")
@ -136,7 +136,7 @@ def step_impl(context):
# ======================== Chrome.find_tab_by_title() ========================
@when("the find_tab_by_title method is called")
def step_impl(context):
context.ftbt_return = context.client.find_tab_by_title()
context.ftbt_return = context.client.find_tab_by_title("Google")
@then("the id that this method returned must match the id of the tab searched")
def step_impl(context):