Skip to content

Commit

Permalink
chore: add error handling url to switchToWindow err (#215)
Browse files Browse the repository at this point in the history
Co-authored-by: Michael <me@michaelsiek.com>
  • Loading branch information
AdnoC and michael-siek authored Sep 22, 2021
1 parent 99d4475 commit a04c46c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/axe-core-api/lib/axe/api/run.rb
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ def within_about_blank_context(page)
end
driver.switch_to.window page.window_handles[-1]
rescue
raise StandardError.new "switchToWindow failed. Are you using updated browser drivers?"
raise StandardError.new "switchToWindow failed. Are you using updated browser drivers? Please check out https://github.com/dequelabs/axe-core-gems/blob/develop/error-handling.md"
end
driver.get "about:blank"

Expand Down

0 comments on commit a04c46c

Please sign in to comment.