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

This version of ChromeDriver only supports Chrome version 91 #1030

Closed
hyunbeomheo opened this issue Sep 7, 2021 · 1 comment
Closed

This version of ChromeDriver only supports Chrome version 91 #1030

hyunbeomheo opened this issue Sep 7, 2021 · 1 comment

Comments

@hyunbeomheo
Copy link

Electron version :13.1.8
Spectron version : 15.0.0

Failed to create session.
session not created: This version of ChromeDriver only supports Chrome version 91
Current browser version is 93.0.4577.63 with binary path /usr/bin/google-chrome

at Object.startWebDriverSession (node_modules/webdriver/build/utils.js:34:15)
at Function.newSession (node_modules/webdriver/build/index.js:35:45)
at Object.<anonymous>.exports.remote (node_modules/webdriverio/build/index.js:53:22)

I tried below to solve this issue :

  1. Installing the latest version of electron-chromedriver
  2. Overwritten the version of Chromedriver binary

I thought the issue related to some dependency modules of Spectron.
So I wonder how could solve this issue at least temporarily.
Thx.

@hyunbeomheo
Copy link
Author

Finally, I found a workaround.

It is to using an older version of Chrome Browser when I run these test cases.

There is no official website that offering old version binaries, so I look for alternatives.
And I found one here. (https://chromium.cypress.io/)

Secondly, I Extracted all binaries to a specific directory like ~/.chrome_binary_91.

After that, I added some code like below.

app = new Application({
    { ... }
    webdriverOptions: {
        capabilities: {
        'goog:chromeOptions': {
            binary: '~/.chrome_binary_91/chrome',
        },
    },
},

It works.
I hope this solution will help you too.
Thx.

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

1 participant