How to setup ChromeDriver 74 with Chrome 74 for Travis?

#1

Any quick fix for this on travis.ci?

Related to https://stackoverflow.com/questions/55201226/session-not-created-this-version-of-chromedriver-only-supports-chrome-version-7

Selenium message:session not created: This version of ChromeDriver only supports Chrome version 74
  (Driver info: chromedriver=74.0.3729.6 (255758eccf3d244491b8a1317aa76e1ce10d57e9-refs/branch-heads/3729@{#29}),platform=Mac OS X 10.14.3 x86_64)

Here is the PR I’m trying to fix

Here is my travis config:

language:
  - ruby
rvm:
  - 2.5.3
sudo: true
notifications:
  slack: shakacode:YvfXbuFMcFAHt6ZjABIs0KET
addons:
  apt:
    sources:
      - ubuntu-toolchain-r-test
    packages:
      - g++-4.9
services:
  - docker

cache:
  bundler: true
  directories:
    - node_modules # NPM packages
  yarn: true

gemfile:
  - Gemfile

env:
  global:
    - RAILS_ENV=test
    - DRIVER=selenium_chrome
    - CHROME_BIN=/usr/bin/google-chrome
    - USE_COVERALLS=TRUE

before_install:
  - sudo apt-get update
  - sudo apt-get install -y xvfb libappindicator1 fonts-liberation
  - wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
  - sudo dpkg -i google-chrome*.deb
  - "/sbin/start-stop-daemon --start --quiet --pidfile /tmp/custom_xvfb_99.pid --make-pidfile --background --exec /usr/bin/Xvfb -- :99 -ac -screen scn 1600x1200x16"

install:
  - travis_retry gem install bundler -v '<2' # Ruby 2.2 and Rails 3.2 & 4.2 depend on bundler 1.x.
  - travis_retry nvm install 8.11.3
  - node -v
  - travis_retry npm i -g yarn
  - travis_retry bundle install
  - travis_retry yarn
  - bundle
  - yarn
  - node --version
  - google-chrome --version
  - chromedriver --version
  - yarn install
  - rake db:setup

# Tip: No need to run xvfb if running headless testing.
before_script:
   - export DISPLAY=:99.0
   - sh -e /etc/init.d/xvfb start

script:
  - bundle exec rake db:schema:load
  - bundle exec rake
1 Like
Comment or indirect reply for travis-ci-community
#2

Temporary fix to revert to a chrome version that was working.

#.travis.yml
before_script:
  - chromedriver-update 73.0.3683.68

Source:

#3

Can anyone from the TravisCI team comment? Would it be possible to make the addons: chrome: stable install both Google Chrome and the matching Chromedriver version? The matching version can be fetched from: https://chromedriver.storage.googleapis.com/index.html (unfortunately there’s no symlink to ‘stable’)