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

ChromeDriver only supports Chrome version 113 #859

Closed
vkochhar-dev opened this issue Oct 9, 2023 · 3 comments
Closed

ChromeDriver only supports Chrome version 113 #859

vkochhar-dev opened this issue Oct 9, 2023 · 3 comments

Comments

@vkochhar-dev
Copy link

vkochhar-dev commented Oct 9, 2023

Error: SessionNotCreatedError: session not created: This version of ChromeDriver only supports Chrome version 113
Current browser version is 117.0.5938.132 with binary path /usr/bin/google-chrome
at Object.throwDecodedError (/opt/hostedtoolcache/node/20.8.0/x64/lib/node_modules/@axe-core/cli/node_modules/selenium-webdriver/lib/error.js:524:15)
at parseHttpResponse (/opt/hostedtoolcache/node/20.8.0/x64/lib/node_modules/@axe-core/cli/node_modules/selenium-webdriver/lib/http.js:601:13)
at Executor.execute (/opt/hostedtoolcache/node/20.8.0/x64/lib/node_modules/@axe-core/cli/node_modules/selenium-webdriver/lib/http.js:529:28)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5) {
remoteStacktrace: '#0 0x560013e10133 \n' +
'#1 0x560013b44966 \n' +
'#2 0x560013b725ec \n' +
'#3 0x560013b6d8da \n' +
'#4 0x560013b6a07b \n' +
'#5 0x560013ba99ad \n' +
'#6 0x560013ba918f \n' +
'#7 0x560013ba09a3 \n' +
'#8 0x560013b7546a \n' +
'#9 0x560013b7655e \n' +
'#10 0x560013dcfcae \n' +
'#11 0x560013dd38fe \n' +
'#12 0x560013ddcf20 \n' +
'#13 0x560013dd4923 \n' +
'#14 0x560013da7c0e \n' +
'#15 0x560013df7b08 \n' +
'#16 0x560013df7c97 \n' +
'#17 0x560013e08113 \n' +
'#18 0x7f9899094b43 \n'
}
Please report the problem to: https://github.com/dequelabs/axe-core-npm/issues/

Error: Process completed with exit code 1.

@straker
Copy link
Contributor

straker commented Oct 9, 2023

Thanks for the issue. Does installing the matching chromedriver resolve the issue? More info can be found here #816

@padmavemulapati
Copy link

Whenever this chromedriver issue comes, we used to update the chromedriver globally using
npm install chromedriver --update -g so that it updates the compatible chromedriver and works fine.
@straker , can you confirm this solution too, along with the solution provided in #816

@padmavemulapati
Copy link

padmavemulapati commented Oct 11, 2023

Verified with the latest version of @axe-core/cli_4.7.4-62fd241.0, chromedriver when ever version compatibility error showing, we can have a solution uisng--chromedriver-path` option.

Steps to validate:

  1. To get a updated chromedriver version at the global location
    npm install chromedriver --update -g

  2. To Find out where chromedriver is we can use a command at the terminal in MAC - which chromedriver and in windows - Where chromedriver

    Which gives you something like this
    /usr/local/bin/chromedriver From a mac

  3. Run axe cli with the following flag. Based on above step
    Flag: --chromedriver-path /usr/local/bin/chromedriver

Example:

axe  --chromedriver-path /usr/local/bin/chromedriver  https://google.com

Getting more comfortable

axe --chromedriver-path $(npm root -g)/chromedriver/bin/chromedriver http://google.com

We can see the output successfully, even we have non-compatible version saved in our machine and trying to run axe-cli . This above process will update the compatibility version of chromdriver and pick the path from where the compatible version of chromedriver located and working as expected.

Output:

axe --chromedriver-path $(npm root -g)/chromedriver/bin/chromedriver http://google.com
Running axe-core 4.8.2 in chrome-headless

Testing http://google.com ... please wait, this may take a minute.

  Violation of "aria-allowed-role" with 1 occurrences!
    Ensures role attribute has an appropriate value for the element. Correct invalid elements at:
     - #APjFqb
    For details, see: https://dequeuniversity.com/rules/axe/4.8/aria-allowed-role

  Violation of "aria-valid-attr-value" with 2 occurrences!
    Ensures all ARIA attributes have valid values. Correct invalid elements at:
     - #APjFqb
     - .ayzqOc
    For details, see: https://dequeuniversity.com/rules/axe/4.8/aria-valid-attr-value

  Violation of "color-contrast" with 8 occurrences!
    Ensures the contrast between foreground and background colors meets WCAG 2 AA minimum contrast ratio thresholds. Correct invalid elements at:
     - .uU7dJb
     - a[data-usg="AOvVaw33zjaJZ_ogw8iPEm4kPGYh"]
     - a[data-usg="AOvVaw3Oj62V1xNd5oAI6Vxou5Lx"]
     - a[data-usg="AOvVaw2SJ4zwRVXKyZr53qG9dm4K"]
     - .pHiOh:nth-child(4)
     - a[data-usg="AOvVaw2y-DJehqHRQuhUzwsARmol"]
     - a[data-usg="AOvVaw25sheD5OGrPUyBw_FdCQOy"]
     - .ayzqOc
    For details, see: https://dequeuniversity.com/rules/axe/4.8/color-contrast

  Violation of "region" with 8 occurrences!
    Ensures all page content is contained by landmarks. Correct invalid elements at:
     - .gb_yd > div:nth-child(1)
     - .gb_za
     - .lnXdpd
     - #SIvCob
     - .uU7dJb
     - .AghGtd
     - a[data-usg="AOvVaw2y-DJehqHRQuhUzwsARmol"]
     - a[data-usg="AOvVaw25sheD5OGrPUyBw_FdCQOy"]
    For details, see: https://dequeuniversity.com/rules/axe/4.8/region

19 Accessibility issues detected.
Testing complete of 1 pages

Please note that only 20% to 50% of all accessibility issues can automatically be detected. 
Manual testing is always required. For more information see:
https://dequeuniversity.com/curriculum/courses/testingmethods

Screenshot:

image

Environment:

Label Value
Product axe-core-npm/cli
Version 4.7.4-62fd241.0
OS-Details _MAC- Intel Core i7 - 11.6.8 & Windows11 _
BrowserDetails Chrome Version 117.0.5938.88 (Official Build) (64-bit) & Firefox 117.0

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

3 participants