When I run ng e2e
I get the following error:
[16:19:47] E/launcher - 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=Mac OS X 10.14.6 x86_64)
[16:19:47] E/launcher - SessionNotCreatedError: 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=Mac OS X 10.14.6 x86_64)
The version of Chrome I have installed is "Version 77.0.3865.75 (Official Build) (64-bit)". How can I force the Angular End to End tests to use the latest version of the ChromeDriver that supports the latest version of chrome?
Whatever I try, on running ng e2e
it gets the same version
[16:19:22] I/update - chromedriver: file exists app-path/node_modules/protractor/node_modules/webdriver-manager/selenium/chromedriver_74.0.3729.6.zip
[16:19:22] I/update - chromedriver: unzipping chromedriver_74.0.3729.6.zip
Edit
As a workaround, I can manually upgrade the version of webdriver-manager in the protractor package as per this answer. It's not a long term fix as the change will get wiped out every time I reinstall the node modules.
I don't think this is a duplicate of this question. That question is specifically about R and RSelenium, and the accepted answer is about generic mismatches with Selenium. My question is specifically about Angular. I haven't installed ChromeDriver or webdriver-manager manually and they are not in my package.json
file so as far as I'm aware I can't manually select the version.
Can anyone help with solving this issue within an Angular project?