Implementation of the new headless chrome with chromedriver and selenium.
Switch branches/tags
Nothing to show
Clone or download
ldaume dependency updates
org.assertj:assertj-core:test                  : 3.8.0          -> 3.9.1 
org.seleniumhq.selenium:selenium-chrome-driver : 3.8.1          -> 3.10.0
software.reinvent:commons                      : 0.3.6 -> 0.3.9
Latest commit 3758865 Mar 7, 2018

Build Status Dependencies UpToDate Latest Version License
Build Status Dependencies UpToDate Maven Central License: MIT

Headless Chrome


Google Chrome version 59+ contains a real headless mode with no need of any display like xvfb or vnc.



Just add the following maven central dependency.


Add dependency to build.sbt.

libraryDependencies += "software.reinvent" % "headless-chrome" % "x.y.z"



Guice Binding

If you use Guice for injections, just bind the Provider HeadlessChromeProvider.


The config uses the typesafe config.

Path Description Default Required The path to the chromedriver binary bundled in resources The path to the chrome binary /usr/bin/google-chrome-unstable
chrome.window.size The window size as string: "width,height" "1920,1200"
webdriver.user.agent The user agent used in chrome default HeadlessChrome agent
chrome.headless Set true to run chrome in headless mode true


Use Chrome version 60.

For Windows one could use the portable App from here.


Use the ChromeDriver version 2.31 which is available here.