diff --git a/api/chrome/features/steps/steps.py b/api/chrome/features/steps/steps.py index ff44bdf..e1e7f8c 100644 --- a/api/chrome/features/steps/steps.py +++ b/api/chrome/features/steps/steps.py @@ -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):