Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

ldaume/headless-chrome

Folders and files

NameName
Last commit message
Last commit date

Latest commit

History

44 Commits

Repository files navigation

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

Headless Chrome

Abstract

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

Usage

Repo

Just add the following maven central dependency.

SBT

Add dependency to build.sbt.

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

Maven

<dependency>
 <groupId>software.reinvent</groupId>
 <artifactId>headless-chrome</artifactId>
 <version>x.y.z</version>
</dependency

Guice Binding

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

Config

The config uses the typesafe config.

Path Description Default Required
webdriver.chrome.driver The path to the chromedriver binary bundled in resources
webdriver.chrome.binary 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

Chrome

Use Chrome version 60.

For Windows one could use the portable App from here.

ChromeDriver

Use the ChromeDriver version 2.31 which is available here.

About

Implementation of the new headless chrome with chromedriver and selenium.

Topics

Resources

License

Stars

Watchers

Forks

Packages

Contributors

AltStyle によって変換されたページ (->オリジナル) /