downloading selenium incorrectly
See original GitHub issueHi. 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$
Issue Analytics
- State:
- Created 4 years ago
- Reactions:16
- Comments:18 (8 by maintainers)
Top Results From Across the Web
Selenium Python - problem with downloading file, preferences ...
I tested your code on some CSV and I had to use application/octet-stream because sometimes servers may send file with different type.
Read more >selenium-python Downloading file Error -- Failed - Edureka
I am trying to download files in the selected directory other than the default directory. I am getting "Failed -Download Error".
Read more >Downloads - ChromeDriver - WebDriver for Chrome
If you are using Chrome version 94, please download ChromeDriver 94.0.4606.41 ... Resolved issue 3746: attribute endpoint incorrectly updates values.
Read more >How to fix common Selenium errors? - Ultimate QA
The problem is a standard compatibility issue between Selenium WebDriver and your version of a browser. As I am writing about this, the...
Read more >Web Scraping using Selenium and Python | ScrapingBee
Once you have downloaded, both, Chrome and ChromeDriver and installed the Selenium package, you should be ready to start the browser:.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
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
.