angular / webdriver-manager

A binary manager for E2E testing
MIT License
225 stars 115 forks source link

No options to update gecko driver for 32 bit version #230

Open rahulmr opened 7 years ago

rahulmr commented 7 years ago

webdriver-manager update --version.gecko="v0.14.0" always installs 64 bit version.

$ ./node_modules/.bin/webdriver-manager update --versions.gecko="v0.14.0"
[12:53:54] I/downloader - curl -o D:\projects\portal\node_modules\protractor\node_modules\webdriver-manager\selenium/chromedriver_2.28.zip https://chromedriver.storage.googleapis.com/2.28/chromedriver_win32.zip
[12:53:54] I/update - selenium standalone: file exists D:\projectsportal\node_modules\protractor\node_modules\we
bdriver-manager\selenium\selenium-server-standalone-3.3.1.jar
[12:53:54] I/update - selenium standalone: selenium-server-standalone-3.3.1.jar up to date
[12:53:55] I/update - chromedriver: unzipping chromedriver_2.28.zip
[12:53:56] I/downloader - curl -o D:\projects\portal\node_modules\protractor\node_modules\webdriver-manager\selenium/geckodriver-v0.14.0.zip https://github.com/mozilla/geckodriver/releases/download/v0.14.0/geckodriver-v0.14.0-win64.zip
[12:54:00] I/update - geckodriver: unzipping geckodriver-v0.14.0.zip

Also, 0.14.0 is not supported , I need to write v0.14.0. Is it possible to provide either --versions.gecko32="v0.15.0" or is it possible to have all below as valid options?

0.14.0-win32
0.14.0 // this should default to 32 bit may be
v0.15.0-win64
etc..etc..
cnishina commented 7 years ago

Yup that is currently what is default and there is no way to change it. Do you have a machine that is 32-bit?

rahulmr commented 7 years ago

Yes, I have one but I don't use it much. And actually I thought it is related to Firefox installed version, as we have Firefox 32 bit and 64 bit version both available. If it is not related what version(32 or 64) of Firefox we are using , then I don't have an issue. I am facing issue with gecko driver with protractor directConnect: true so I thought it might be related to Firefox version being different than gecko version.

Tom-Hudson commented 7 years ago

I am having a similar issue here in that I want to be able to sometimes specify 32 bit driver over 64 bit (and vice versa). It would be awesome to be able to do this with the update command:

node_modules/.bin/webdriver-manager update --ie --versions.standalone=3.4.0 --versions.chrome=2.29-32 --versions.firefox=0.16.1-32 --versions.ie=3.4.0-64
cnishina commented 5 years ago

Please try this again. The new code should work.

rahulmr commented 5 years ago

Thanks @cnishina, but unfortunately I am no longer working on angular and protractor js. So, if you think the issue is fixed please close the same.