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

SessionNotCreatedException: session not created: This version of ChromeDriver only supports Chrome version 74 #77

Closed
Biboba opened this issue Aug 26, 2019 · 1 comment

Comments

@Biboba
Copy link

Biboba commented Aug 26, 2019

Hello,

I am have some tests written with intern in my npm project that I could automatically run using intern command.
But lately, I cannot run them anymore because the following error is logged:

SessionNotCreatedException: [POST http://localhost:4444/wd/hub/session / {"desiredCapabilities":{"name":"intern","idle-timeout":60,"browserName":"chrome","chromeOptions":{"args":["headless","window-size=1024,768"]}}}] session not created: This version of ChromeDriver only supports Chrome version 74
  (Driver info: chromedriver=74.0.3729.6 (255758eccf3d244491b8a1317aa76e1ce10d57e9-refs/branch-heads/3729@{#29}),platform=Windows NT 10.0.16299 x86_64) (WARNING: The server did not provide any stacktrace information)

My intern.json file looks like the following:

{
  "capabilities": {
    "fixSessionCapabilities": "no-detect"
  },
  "environments": [
    {
      "browserName": "chrome",
      "chromeOptions": { "args": [ "headless", "window-size=1024,768" ] }
    }
  ],
  "filterErrorStack": true,
  "suites": "~tmp/tests.js"
}

Chrome installed version is "Version 76.0.3809.100 (Build officiel) (64 bits)" on Windows10.

Digging around, I noticed that npm "digdub" package downloaded selenium server standalone-3.141.59.jar and chrome driver 74.0.3729.6.
If I manually edit "SeleniumTunnel.js" file and update ChromeVersion property of object driverInfo to '76.0.3809.68' then it downloads chromedriver 76.0.3809.68 and my tests are executed :

Capture

So I wonder why is version 74 of chrome hardcoded and how am supposed to do if the version of chrome installed is 76 ?:

ChromeVersion: '74.0.3729.6',

Thanks for your help !

@Biboba
Copy link
Author

Biboba commented Aug 26, 2019

Everything is written:
https://theintern.io/docs.html#Intern/4/docs/docs%2Frunning.md/selenium
Adding the following snippet to intern.json file solved the issue:

"tunnelOptions": {
    "drivers": [
      { "name": "chrome", "version": "76.0.3809.68" }
    ]
  }

@Biboba Biboba closed this as completed Aug 26, 2019
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