protractor: Protractor 5.4.2 is not compatible with Chrome 77

Chrome 77 just got released, which is not compatible with Protractor 5.4.2:

[15:06:46] E/runner - Unable to start a WebDriver session.
[15:06:46] E/launcher - Error: SessionNotCreatedError: session not created: 
  This version of ChromeDriver only supports Chrome version 75
  (Driver info: chromedriver=75.0.3770.90 (a6dcaf7e3ec6f70a194cc25e8149475c6590e025-refs/branch-heads/3770@{#1003}),platform=Mac OS X 10.14.6 x86_64)

Specifying later version of chromedriver works, but it is pretty much not a robust solution, as it requires to specify the exact version of driver:

/webdriver-manager update --versions.chrome=77.0.3865.40

--versions.chrome=77 doesn’t work

About this issue

  • Original URL
  • State: closed
  • Created 5 years ago
  • Reactions: 32
  • Comments: 16 (2 by maintainers)

Most upvoted comments

@localpcguy this is what I put in our protractor config:

chromeDriver: './node_modules/protractor/node_modules/webdriver-manager/selenium/chromedriver_77.0.3865.75',

That won’t cause protractor to download it. We use Travis CI instead of Circle CI. To get the correct chromedriver downloaded, I put this command in our travis.yml file:

./node_modules/protractor/bin/webdriver-manager update --versions.chrome=77.0.3865.75

Okay this should work now. You’ll need to get the latest webdriver-manager version 12.1.7. This should work from here on in to get the latest release of chromedriver.

To get the latest you might need to remove the node_modules folder and redownload your node modules or do a force install of your node modules (npm i -f)