Skip to content

Commit

Permalink
Open new tabs without an opener [fixes #174]
Browse files Browse the repository at this point in the history
  • Loading branch information
makmic committed Jul 7, 2021
1 parent 22a1d81 commit 70989f6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/spreewald/browser_tab_steps.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
previous_handles_count = browser.window_handles.size
relative_target_path = path_to(page_name)

page.execute_script "window.open('#{relative_target_path}', '_blank')"
page.execute_script "window.open('#{relative_target_path}', '_blank', 'noopener')"
step "there should be #{previous_handles_count + 1} browser tabs"
step "I switch to the new browser tab"
end.overridable
Expand Down

0 comments on commit 70989f6

Please sign in to comment.