webdriver-manager: downloading selenium incorrectly

Hi. I’m running into a problem where webdriver-manager is downloading a zip and renaming it .jar and then I get a corrupt jarfile.

curl -o/Users/smonasco/spartan/node_modules/protractor/node_modules/webdriver-manager/selenium/selenium-server-standalone-4.0.0-alpha-1.zip.jar https://selenium-release.storage.googleapis.com/4.0/selenium-server-standalone-4.0.0-alpha-1.zip

This is of course not a proper jar file and later I get

[webdriver] Error: Invalid or corrupt jarfile /home/circleci/project/node_modules/protractor/node_modules/webdriver-manager/selenium/selenium-server-standalone-4.0.0-alpha-1.zip.jar

running it from bash this is the output.

Admins-MacBook-Pro:bin smonasco$ ./webdriver-manager update --standalone
webdriver-manager: using global installed version 12.1.1
[13:34:08] I/update - chromedriver: file exists /Users/smonasco/spartan/node_modules/protractor/node_modules/webdriver-manager/selenium/chromedriver_2.46.zip
[13:34:08] I/update - chromedriver: unzipping chromedriver_2.46.zip
[13:34:08] I/update - chromedriver: setting permissions to 0755 for /Users/smonasco/spartan/node_modules/protractor/node_modules/webdriver-manager/selenium/chromedriver_2.46
[13:34:08] I/update - chromedriver: chromedriver_2.46 up to date
[13:34:08] I/downloader - curl -o/Users/smonasco/spartan/node_modules/protractor/node_modules/webdriver-manager/selenium/selenium-server-standalone-4.0.0-alpha-1.zip.jar https://selenium-release.storage.googleapis.com/4.0/selenium-server-standalone-4.0.0-alpha-1.zip
[13:34:09] I/update - geckodriver: file exists /Users/smonasco/spartan/node_modules/protractor/node_modules/webdriver-manager/selenium/geckodriver-v0.24.0.tar.gz
[13:34:09] I/update - geckodriver: unzipping geckodriver-v0.24.0.tar.gz
[13:34:09] I/update - geckodriver: setting permissions to 0755 for /Users/smonasco/spartan/node_modules/protractor/node_modules/webdriver-manager/selenium/geckodriver-v0.24.0
[13:34:09] I/update - geckodriver: geckodriver-v0.24.0 up to date
Admins-MacBook-Pro:bin smonasco$ pwd
/Users/smonasco/spartan/node_modules/protractor/node_modules/webdriver-manager/bin
Admins-MacBook-Pro:bin smonasco$ 

About this issue

  • Original URL
  • State: open
  • Created 5 years ago
  • Reactions: 16
  • Comments: 18 (8 by maintainers)

Commits related to this issue

Most upvoted comments

I think the fix is to do another release for webdriver-manager. This will be released tomorrow. Stay tuned.

Leaving this open. If you are encountering this issue, please update to webdriver-manager 12.1.2. If you are using Protractor to download webdriver-manager, simply remove the node_modules directory and reinstall or do a npm install -f.

@clymerrm I just found that although I am manually seeing this issue I described, if I run my spec with the conf having directConnect, everything runs OK…sorta, I’m having issue with either the page loading or clicking on an element, not sure if that has anything to do with server…but perhaps I will try a more current version of the server as you suggested.

@yiyi920 See https://github.com/angular/protractor/issues/5224. Resolved a few different ways for temporary workarounds.

I have a proposed fix and if this is reviewed today I will try to get a release out since this is probably breaking things. Have you tried the alpha jar file yet?