Install a dedicated chrome protractor strap

I have a problem with a chrome driver that works on CircleCi. The problem is that on startup:

./node_modules/.bin/webdriver-manager update

      

and then check the chrome rib and selenium version with the command:

ls -lt node_modules/protractor/selenium

      

it shows the latest versions:

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

      

According to npm.taobao.org note ChromeDriver version 2.15 supports Chrome v40-43. But CicleCi documentation says it is using Chrome 38.0 version. Hence, I need to use ChromeDriver v2.13 which is compatible with Chrome v38.0. My question is, can I force webdriver-manager

ChromeDriver v2.13 to be used instead of the latter.

+3


source to share


2 answers


It should probably be a feature request for the protractor command. But this is what I recommend you do:



Modify the property webdriverVersions

on the transporter config.json file. webdriver-manager uses this property to download files.

+7


source


@Andres suggested a good solution, but the simplest might be to add a file circle.yml

that contains the following command to update the chrome version:



test:
  pre:
    - sudo apt-get update && sudo apt-get install --only-upgrade google-chrome-stable

      

0


source







All Articles