Skip to content

Can't specify ChromeDriver 76 or any other versions on webdriver-manager update #404

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

Closed
jumjamjohn opened this issue Jul 31, 2019 · 13 comments

Comments

@jumjamjohn
Copy link

jumjamjohn commented Jul 31, 2019

ubuntu xenial (travis ci)
protractor 5.4.2
webdriver-manager 12.1.5

I keep seeing the following errors after Chrome 76 got released.

  1. webdriver-manager update downloads chromedriver 2.46 and causes Error: SessionNotCreatedError: session not created: Chrome version must be between 71 and 75 on running protractor.
  2. I specified the chromedriver version to 76.0.3809.68 with no luck, seeing UnhandledPromiseRejectionWarning: Invalid filename. This seems a similar issue to webdriver-manager update downloads an incompatible version of chromedriver #376

logs for the first one:

> webdriver-manager update --standalone false --gecko false
[03:49:32] I/file_manager - creating folder /home/travis/build/.../node_modules/protractor/node_modules/webdriver-manager/selenium
[03:49:32] I/config_source - curl -o/home/travis/build/.../node_modules/protractor/node_modules/webdriver-manager/selenium/chrome-response.xml https://chromedriver.storage.googleapis.com/
[03:49:32] I/downloader - curl -o/home/travis/build/.../node_modules/protractor/node_modules/webdriver-manager/selenium/chromedriver_2.46.zip https://chromedriver.storage.googleapis.com/2.46/chromedriver_linux64.zip
[03:49:32] I/update - chromedriver: unzipping chromedriver_2.46.zip
[03:49:32] I/update - chromedriver: setting permissions to 0755 for /home/travis/build/.../node_modules/protractor/node_modules/webdriver-manager/selenium/chromedriver_2.46

> protractor protractor.conf.js
[03:49:32] W/driverProviders - Using driver provider directConnect, but also found extra driver provider parameter(s): seleniumAddress
[03:49:32] I/launcher - Running 1 instances of WebDriver
[03:49:32] I/direct - Using ChromeDriver directly...
[03:49:33] E/runner - Unable to start a WebDriver session.
[03:49:33] E/launcher - Error: SessionNotCreatedError: session not created: Chrome version must be between 71 and 75
  (Driver info: chromedriver=2.46.628388 (4a34a70827ac54148e092aafb70504c4ea7ae926),platform=Linux 4.15.0-1028-gcp x86_64)

for the second one:

> ./node_modules/protractor/bin/webdriver-manager update --standalone false --gecko false --versions.chrome 76.0.3809.68
[08:28:17] I/file_manager - creating folder /home/travis/build/.../node_modules/protractor/node_modules/webdriver-manager/selenium
[08:28:17] I/config_source - curl -o/home/travis/build/.../node_modules/protractor/node_modules/webdriver-manager/selenium/chrome-response.xml https://chromedriver.storage.googleapis.com/
[08:28:18] E/downloader - undefined
[08:28:18] I/update - chromedriver: file exists /home/travis/build/.../node_modules/protractor/node_modules/webdriver-manager/selenium/chromedriver_76.0.3809.68.zip
[08:28:18] I/update - chromedriver: unzipping chromedriver_76.0.3809.68.zip
(node:8976) UnhandledPromiseRejectionWarning: Invalid filename
(node:8976) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 2)

related: #376

@jumjamjohn jumjamjohn changed the title Can't specify a version of ChromeDriver Can't specify a version of ChromeDriver for 76 or any other versions Jul 31, 2019
@jumjamjohn jumjamjohn changed the title Can't specify a version of ChromeDriver for 76 or any other versions Can't specify ChromeDriver 76 or any other versions on webdriver-manager update Jul 31, 2019
@MathRobin
Copy link
Contributor

have created a pull request for this #405

@Dolly2315
Copy link

I am facing the same issue

@jumjamjohn
Copy link
Author

jumjamjohn commented Jul 31, 2019

Thank you, @MathRobin. I didn't know it was just config.json. Hope it'll get merged soon.

For those who have the same problem, I solved this by removing chrome: stable in travis.yml so that ChromeDriver uses Chrome 73 that is installed in my Travis container by default though this is just a temporary solution.

@cnishina
Copy link
Contributor

Published 12.1.6. Thank you @MathRobin for creating the PR and thank you for creating the issue and discussion.

@Dolly2315
Copy link

Dolly2315 commented Aug 7, 2019 via email

@NicBright
Copy link

Hi @Dolly2315

Thank you very much for your instantaneous response and explanation. I've figured out to update webdriver-manager, too, that's why I've deleted my post a few minutes later. The only thing is that I now have errors telling me something about "circular reference" (which forced me into using a different machine for now where the "old" setup using Chrome 75 is still running). However this error is unrelated to this thread.

Regards
Nicolas

@roriordan9
Copy link

@Dolly2315's solution worked for me just now, after a few hours of trying to get webdriver-manager to update, then trying to work out why the latest version with support for chromedriver 76 wasn't working...thanks @Dolly2315!

@amilbeck
Copy link

amilbeck commented Aug 7, 2019

Confirming @Dolly2315's solution worked for me as well. Not going to be a long term solution but it's a valid workaround for now.

@hiquetj
Copy link

hiquetj commented Aug 9, 2019

Unfortunately I didn't have a dependency in protractor for npm; so @Dolly2315 's workaround didn't work. But it did help me realize that replacing the chromedriver I had innode_modules/.bin/chromedriver with a chromedriver applicable to my chrome version sufficed as my current workaround. Putting this here for others in case they need another viable workaround

@rafalf
Copy link

rafalf commented Aug 11, 2019

webdriver-manager version webdriver-manager: using global installed version 12.1.6 [12:55:41] I/version - webdriver-manager 12.1.6

sudo webdriver-manager update Password: webdriver-manager: using global installed version 12.1.6 [12:56:17] I/update - chromedriver: file exists /usr/local/lib/node_modules/webdriver-manager/selenium/chromedriver_76.0.3809.12.zip [12:56:17] I/update - chromedriver: unzipping chromedriver_76.0.3809.12.zip [12:56:17] I/update - chromedriver: setting permissions to 0755 for /usr/local/lib/node_modules/webdriver-manager/selenium/chromedriver_76.0.3809.12 [12:56:17] I/update - chromedriver: chromedriver_76.0.3809.12 up to date [12:56:17] I/update - selenium standalone: file exists /usr/local/lib/node_modules/webdriver-manager/selenium/selenium-server-standalone-3.141.59.jar [12:56:17] I/update - selenium standalone: selenium-server-standalone-3.141.59.jar up to date [12:56:18] I/update - geckodriver: file exists /usr/local/lib/node_modules/webdriver-manager/selenium/geckodriver-v0.24.0.tar.gz [12:56:18] I/update - geckodriver: unzipping geckodriver-v0.24.0.tar.gz [12:56:18] I/update - geckodriver: setting permissions to 0755 for /usr/local/lib/node_modules/webdriver-manager/selenium/geckodriver-v0.24.0 [12:56:18] I/update - geckodriver: geckodriver-v0.24.0 up to date

but its still picking up .46

[12:48:04] E/launcher - Error: SessionNotCreatedError: session not created: Chrome version must be between 71 and 75 (Driver info: chromedriver=2.46.628411 (3324f4c8be9ff2f70a05a30ebc72ffb013e1a71e),platform=Mac OS X 10.14.6 x86_64)

any ideas how do I fix it?

[UPDATE]
for me the solution was to go to
/usr/local/lib/node_modules/protractor
and then run

sudo webdriver-manager update
webdriver-manager: using local installed version 12.1.6
...

rogargon added a commit to rhizomik/rhizomerEye that referenced this issue Aug 12, 2019
rogargon added a commit to rhizomik/rhizomerEye that referenced this issue Aug 12, 2019
rogargon added a commit to rhizomik/rhizomerEye that referenced this issue Aug 12, 2019
jjelschen pushed a commit to test-editor/test-editor-web that referenced this issue Aug 13, 2019
Protractor uses its own version of webdriver manager, which is too old to support Chrome 76.

* angular/webdriver-manager#404
* angular/protractor#5289

Its really not worth the effort implementing any of the suggested workarounds.
For now, the e2e tests on Chrome will simply not be executed on Travis.
Once Protractor 5 is updated with the latest webdriver manager version, we can turn them back on again.
jjelschen pushed a commit to test-editor/test-editor-web that referenced this issue Aug 13, 2019
…165)

Protractor uses its own version of webdriver manager, which is too old to support Chrome 76.

* angular/webdriver-manager#404
* angular/protractor#5289

Its really not worth the effort implementing any of the suggested workarounds.
For now, the e2e tests on Chrome will simply not be executed on Travis.
Once Protractor 5 is updated with the latest webdriver manager version, we can turn them back on again.
@shreyansh791
Copy link

None of the solutions here works.

@hthetiot
Copy link

hthetiot commented Sep 2, 2019

@shreyansh1991 Try this it works

make a fresh node_modules before using this hot-fix then run webdriver-manager update after

blakestier pushed a commit to chef/automate that referenced this issue Sep 5, 2019
bcmdarroch pushed a commit to chef/automate that referenced this issue Sep 6, 2019
bcmdarroch pushed a commit to chef/automate that referenced this issue Sep 9, 2019
bcmdarroch pushed a commit to chef/automate that referenced this issue Sep 9, 2019
bcmdarroch pushed a commit to chef/automate that referenced this issue Sep 9, 2019
@piecioshka
Copy link

In my case, I just installed the missing package and reinstall all deps.

npm i -D webdriver-manager
rm -rf node_modules
npm install

Next run end-to-end tests one more time:

npm run e2e

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