Skip to content

Commit

Permalink
chore: add eh url to switchToWindow err (#189)
Browse files Browse the repository at this point in the history
  • Loading branch information
AdnoC authored Sep 24, 2021
1 parent 01afa94 commit 566897a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,8 @@ public static String openAboutBlank(final WebDriver webDriver) {
webDriver.switchTo().window(abHandle);
webDriver.get("about:blank");
} catch (Exception e) {
throw new RuntimeException("switchToWindow failed. Are you using updated browser drivers?", e);
throw new RuntimeException("switchToWindow failed. Are you using updated browser drivers? Please check out https://github.com/dequelabs/axe-core-maven-html/blob/develop/error-handling.md", e);

}

return currentWindow;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -613,7 +613,8 @@ private Results analyzePost43x(final WebDriver webDriver, final Object rawContex
try {
resResponse = WebDriverInjectorExtensions.executeScript(webDriver, finishRunScript, partialResults);
} catch (Exception e) {
throw new RuntimeException("axe.finishRun failed. Please check out https://github.com/dequelabs/axe-core-maven-html/error-handling.md`", e);
throw new RuntimeException("axe.finishRun failed. Please check out https://github.com/dequelabs/axe-core-maven-html/blob/develop/error-handling.md", e);

}
WebDriverExtensions.closeAboutBlank(webDriver, prevWindow);
Results res = objectMapper.convertValue(resResponse, Results.class);
Expand Down

0 comments on commit 566897a

Please sign in to comment.