Skip to content

Instantly share code, notes, and snippets.

@Arjeno
Created August 17, 2016 13:57
Show Gist options
  • Star 20 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save Arjeno/8564d9643f16d072a85b9c9b5a9f7de0 to your computer and use it in GitHub Desktop.
Save Arjeno/8564d9643f16d072a85b9c9b5a9f7de0 to your computer and use it in GitHub Desktop.
Always use the latest version of Chrome on CircleCI
# This makes sure Chrome is always up to date in your test suite
# On average this adds about 10 seconds to your build suite
# Be sure to use Ubuntu 14.04 (Trusty) in the CircleCI's OS setting (Settings > Build Environment)
dependencies:
pre:
- 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
@19WAS85
Copy link

19WAS85 commented Jul 7, 2017

Great, thanks!

For SEO propose, the message error it fixes was facing running selenium through nightwatchjs scenarios and selenium-standalone npm package:

Connection refused! Is selenium server started?
session not created exception: Chrome version must be >= 58.0.3029.0
Driver info: chromedriver=2.30.477691

@opsb
Copy link

opsb commented Jul 23, 2017

To use the beta version just use https://dl.google.com/linux/direct/google-chrome-beta_current_amd64.deb

@phra
Copy link

phra commented Apr 19, 2018

for an updated answer related to CircleCI 2.0 see this gist: https://gist.github.com/phra/192b6c0ada3f6eaf4029e430430b79fe

@shermaneric
Copy link

shermaneric commented Apr 20, 2018

EDIT: Oops, ignore. I'm reading @phra comment above that satisfies this below

Thanks so much!
I was having success with this, but now i'm getting the below. Should I just pre-process with this?

sudo apt-get update
sudo apt-get install libappindicator3-1
Failing command: sudo dpkg -i google-chrome.deb 
Exit code: 1 
Output:
(Reading database ... 30670 files and directories currently installed.)
Preparing to unpack google-chrome.deb ...
Unpacking google-chrome-stable (66.0.3359.117-1) over (60.0.3112.101-1) ...
dpkg: dependency problems prevent configuration of google-chrome-stable:
 google-chrome-stable depends on libappindicator3-1; however:
  Package libappindicator3-1 is not installed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment