Update Chrome to version 59 or greater for CircleCi 2.0

selenium
chrome
cci-20

#1

I have to run end-to-end tests and I get this error:

[22:46:23] I/launcher - Running 1 instances of WebDriver
[22:46:23] I/direct - Using ChromeDriver directly...
[22:46:24] E/launcher - session not created exception: Chrome version must be >= 59.0.3071.0
  (Driver info: chromedriver=2.32.498513 (2c63aa53b2c658de596ed550eb5267ec5967b351),platform=Linux 4.4.0-92-generic x86_64)
[22:46:24] E/launcher - SessionNotCreatedError: session not created exception: Chrome version must be >= 59.0.3071.0
  (Driver info: chromedriver=2.32.498513 (2c63aa53b2c658de596ed550eb5267ec5967b351),platform=Linux 4.4.0-92-generic x86_64)
    at Object.checkLegacyResponse (/home/circleci/project/node_modules/selenium-webdriver/lib/error.js:505:15)
    at parseHttpResponse (/home/circleci/project/node_modules/selenium-webdriver/lib/http.js:509:13)
    at doSend.then.response (/home/circleci/project/node_modules/selenium-webdriver/lib/http.js:440:13)
    at process._tickCallback (internal/process/next_tick.js:109:7)
From: Task: WebDriver.createSession()
    at Function.createSession (/home/circleci/project/node_modules/selenium-webdriver/lib/webdriver.js:777:24)
    at Function.createSession (/home/circleci/project/node_modules/selenium-webdriver/chrome.js:709:29)
    at Direct.getNewDriver (/home/circleci/project/node_modules/protractor/lib/driverProviders/direct.ts:90:25)
    at Runner.createBrowser (/home/circleci/project/node_modules/protractor/lib/runner.ts:225:39)
    at q.then.then (/home/circleci/project/node_modules/protractor/lib/runner.ts:391:27)
    at _fulfilled (/home/circleci/project/node_modules/protractor/node_modules/q/q.js:834:54)
    at self.promiseDispatch.done (/home/circleci/project/node_modules/protractor/node_modules/q/q.js:863:30)
    at Promise.promise.promiseDispatch (/home/circleci/project/node_modules/protractor/node_modules/q/q.js:796:13)
    at /home/circleci/project/node_modules/protractor/node_modules/q/q.js:556:49
    at runSingle (/home/circleci/project/node_modules/protractor/node_modules/q/q.js:137:13)
[22:46:24] E/launcher - Process exited with error code 199

Please could you update to Chrome to the latest stable version?

Thank u.


/bin/bash: mongo: command not found
#2

Could you also also update Circle 1.0 to the latest stable chrome? We’re seeing the same error:

Selenium::WebDriver::Error::SessionNotCreatedError:
session not created exception: Chrome version must be >= 59.0.3071.0
(Driver info: chromedriver=2.32.498513 (2c63aa53b2c658de596ed550eb5267ec5967b351),platform=Linux 3.13.0-129-generic x86_64)

Thanks!


#3

Hello,

Try to run this script to install latest chrome version before start your tests.

  • run:
    name: Install Chromedriver latest version
    command: |
    sudo apt-get update
    sudo apt-get install lsb-release
    curl -L -o google-chrome.deb https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
    sudo dpkg -i google-chrome.deb
    sudo sed -i ‘s|HERE/chrome"|HERE/chrome" --disable-setuid-sandbox|g’ /opt/google/chrome/google-chrome
    rm google-chrome.deb

#4

it worked. thank u


#5