Search code examples
google-chromeprotractorwebdriverwebdriver-manager

Version mismatch between ChromeDriver & Chrome when running Protractor tests, but no update available


I am trying to run Protractor tests on my Angular app, but am facing an issue with my version of ChromDriver not matching my version of Chrome.

I'm able to run webdriver-manager start fine with no issues, but when I try to run my tests I get this error message:

SessionNotCreatedError: session not created: This version of ChromeDriver only supports Chrome version 85 Build info: version: '3.141.59', revision: 'e82be7d358', time: '2018-11-14T08:25:53'

I checked my version of Chrome & that is version 84. But when I try to update Chrome it says that my version is up to date.

So I have 2 questions:

(1) How come this latest version (85) of Chrome isn't available to me?

(2) Is there a way I can downgrade my webdriver so that it picks up version 84 of Chrome?


Solution

  • I answered this question here as well: https://github.com/angular/protractor/issues/5460 The easiest possible fix is to use:

    webdriver-manager update --versions.chrome=84.0.4147.30
    webdriver-manager start --versions.chrome=84.0.4147.30
    

    to update and start the webdriver server. This forces the version to stay to 84. What I think happened v85 of the chromedriver was added and labelled as latest (you can see this here) which forced webdriver-manager to start downloading version 85 (it by default downloads the latest version).