Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

axe-cli: "An error occurred while testing this page" #308

Closed
DanielTripp opened this issue Jul 25, 2021 · 6 comments
Closed

axe-cli: "An error occurred while testing this page" #308

DanielTripp opened this issue Jul 25, 2021 · 6 comments

Comments

@DanielTripp
Copy link

Product: cli

Expectation: To print a list of accessibility violations to stdout.

Actual: No list of accessibility violations, or any evidence of a scan, appears on stdout. Instead, this appears:


DevTools listening on ws://127.0.0.1:54164/devtools/browser/8e985c0a-b6d8-46ba-aabd-592db8ed88a2
An error occurred while testing this page.
Please report the problem to: https://github.com/dequelabs/axe-core-npm/issues/

Motivation: I think that my "Expectation" is a design goal of axe-cli. Of course, I'm new to this, so I could be wrong.


axe-core version: 4.2.0, I think.  (That's what it says in my file C:\Users\dt\axe-cli-july-25-b\axe-core-npm\node_modules\axe-core\axe.js.  First line: "/*! axe v4.2.0".) 
@axe-core/cli: 4.2.2, I think.  (That's what it says in my file C:\Users\dt\axe-cli-july-25-b\axe-core-npm\packages\cli\package-lock.json: "version": "4.2.2".)

- Node version: v14.17.3
- Platform:   Windows  

I've attached my steps to reproduce as a copy-and-paste of my PowerShell console.
axe-cli-problem-july-25.txt

I don't know whether this is a bug or not. But I sure would benefit from some guidance. All suggestions welcome.

@AlexTolok
Copy link

AlexTolok commented Jul 26, 2021

I have same issue with axe cli on Linux inside circleCI
node v14.10.0 (npm v7.20.1)
Running axe-core 4.3.1 in chrome-headless
I have run script against different pages and it always fails (previously it worked fine with same versions and same web pages) it looks like problem appeared with latest updates)

@AlexTolok
Copy link

AlexTolok commented Jul 26, 2021

@DanielTripp if to use older version of chrome it works for me so I think issue appears only with latest chrome (axe cli works fine on chrome v 91.0.4472.164-1 but fails on 92.0.4515.107-1) also it passes if to change browser to firefox
Try:
axe www.deque.com --tags wcag2a --browser firefox

@DanielTripp
Copy link
Author

@AlexTolok Thank you - I tried firefox and it worked. I looked for older versions of Chrome for download and couldn't find them. But I'm okay with Firefox for now.

@dacohenii
Copy link

I think I have the same issue. With the --show-errors flag, this is what I get:

Error: "session not created: This version of ChromeDriver only supports Chrome version 90\nCurrent browser version is 92.0.4515.107 with binary path /Applications/Google Chrome.app/Contents/MacOS/Google Chrome"
 $s SessionNotCreatedError: session not created: This version of ChromeDriver only supports Chrome version 90
Current browser version is 92.0.4515.107 with binary path /Applications/Google Chrome.app/Contents/MacOS/Google Chrome
    at Object.throwDecodedError (/Users/dcohen/fk/palantir/palantir/node_modules/selenium-webdriver/lib/error.js:517:15)
    at parseHttpResponse (/Users/dcohen/fk/palantir/palantir/node_modules/selenium-webdriver/lib/http.js:642:13)
    at Executor.execute (/Users/dcohen/fk/palantir/palantir/node_modules/selenium-webdriver/lib/http.js:568:28)
    at processTicksAndRejections (internal/process/task_queues.js:93:5)
Please report the problem to: https://github.com/dequelabs/axe-core-npm/issues/

@DanielTripp
Copy link
Author

Thank you @dacohenii, I added --show-errors and I also got a message like that:

Error: "session not created: This version of ChromeDriver only supports Chrome version 90\nCurrent browser version is 92.0.4515.107 with binary path C:\\Program Files\\Google\\Chrome\\Application\\chrome.exe"
 $s SessionNotCreatedError: session not created: This version of ChromeDriver only supports Chrome version 90
Current browser version is 92.0.4515.107 with binary path C:\Program Files\Google\Chrome\Application\chrome.exe
    at Object.throwDecodedError (C:\Users\dt\AppData\Roaming\npm\node_modules\@axe-core\cli\node_modules\selenium-webdriver\lib\error.js:517:15)
    at parseHttpResponse (C:\Users\dt\AppData\Roaming\npm\node_modules\@axe-core\cli\node_modules\selenium-webdriver\lib\http.js:642:13)
    at Executor.execute (C:\Users\dt\AppData\Roaming\npm\node_modules\@axe-core\cli\node_modules\selenium-webdriver\lib\http.js:568:28)
    at processTicksAndRejections (internal/process/task_queues.js:95:5)
Please report the problem to: https://github.com/dequelabs/axe-core-npm/issues/

@Zidious
Copy link
Contributor

Zidious commented Apr 19, 2022

Closing due to inactivity, please re-open if the issue is apparent in 4.4.1

@Zidious Zidious closed this as completed Apr 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants