Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Install specific chromedriver for protractor

I am having an issue with chrome driver that runs on the CircleCi. The problem is that when running:

./node_modules/.bin/webdriver-manager update

and then checking the version of chromedriver and selenium with the command:

ls -lt node_modules/protractor/selenium

it shows the latest versions are:

selenium-server-standalone-2.45.0.jar
chromedriver
chromedriver_2.15.zip

According to the npm.taobao.org note ChromeDriver version 2.15 supports Chrome v40-43. But CicleCi documentation says that it uses Chrome version 38.0. Consequently, I need to use ChromeDriver v2.13 which is compatible with Chrome v38.0. My question is that how can I force webdriver-manager to use ChromeDriver v2.13 instead of the latest one.

like image 605
Max Avatar asked Jun 07 '26 13:06

Max


1 Answers

This should probably be a feature request for the protractor team. But this is what I recommend you to do:

Change the webdriverVersions property on protractor's config.json file. webdriver-manager uses this property to download the files.

like image 133
Andres D Avatar answered Jun 10 '26 07:06

Andres D



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!