Updating to chromedriver23

It says here that chromedriver23 is also available. How do we use this version? My tests are running on version 2.16.

1 Like

Is your project using Precise or Trusty?

We were using Precise and now currently testing Trusty.

Would be interested to know how this could be done , as we are using Trusty and we could see the version on circle ci box for chrome driver is 2.21.371461 and would like to use the latest chrome driver to avoid Net Read Timeout error in the latest version of chrome.

@ram @khiemlam - I’m currently running on chrome driver 2.3* as part of my Angular2 client validations. I handle the chrome driver updates in code, not via circle.yml and it’s always worked like a charm.

If that is a soliton that works for anyone, I can get you a gist of how it’s done.

In order to use the chromedriver23 we add this to our circle ci conf.

machine:
  post:
    - chromedriver23:
        background: true

I will start the chromedriver23 in the background before proceeding with the build.

I prefer:

machine:
  post:
    - which chromedriver23 && which chromedriver
    - sudo rm /usr/local/bin/chromedriver && sudo ln -s `which chromedriver23` /usr/local/bin/chromedriver

Mine:

machine:
  post:
    - cd /tmp && wget https://chromedriver.storage.googleapis.com/2.20/chromedriver_linux32.zip
    - cd /tmp && unzip chromedriver_linux32.zip
    - sudo mv -f /tmp/chromedriver /usr/local/bin/chromedriver

But notice, chromedriver doesn’t support chrome v43 (Ubuntu 12.04 default image) well:
https://chromedriver.storage.googleapis.com/2.23/notes.txt