-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Safari noSuchWindowException and Page/Frame not ready (#385)
QA Notes: The following code occasionally caused Safari to throw a `noSuchWindowException` around 1 in 10 times, and I expect it never to do so now. ``` require "selenium-webdriver" require_relative "../../lib/axe/api/run" require "json" driver = Selenium::WebDriver.for :safari # driver.navigate.to "http://google.com" driver.navigate.to "https://dequeuniversity.com/demo/mars/" res = Axe::Core.new(driver).call Axe::API::Run.new.with_options puts JSON.pretty_generate res.results.to_h driver.quit ``` Note the commented `# driver.navigate to "http://google.com"`. Issue #353 notes that attempting to navigate to `http://google.com` would also occasionally cause an exception "Page/Frame not ready" to be thrown; it should no longer do so. Please uncomment this line, comment `driver.navigate.to "https://dequeuniversity.com/demo/mars/"` and test again. This fix is included here since they are closely related. Closes: #352 Closes: #353
- Loading branch information
1 parent
02e93ef
commit a02013a
Showing
4 changed files
with
67 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters