Skip to content

Implementation of the new headless chrome with chromedriver and selenium.

License

Notifications You must be signed in to change notification settings

safrizal/headless-chrome

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Headless Chrome

Abstract

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

Status

Build Status Dependencies UpToDate License
Build Status Dependencies UpToDate License: MIT

Usage

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"
chrome.headless True for headless mode true

Maven

Repo

<project ...>
 <repositories>
    <repository>
      <id>reinvent.software</id>
      <url>https://maven.reinvent-software.de/nexus/content/groups/public/</url>
    </repository>
 </repositories>
</project>

Dependency

<dependency>
  <groupId>software.reinvent</groupId>
  <artifactId>headless-chrome</artifactId>
  <version>0.1.0</version>
</dependency>

SBT

Repo

Add maven repo to build.sbt.

resolvers ++= Seq(
  Resolver.mavenLocal,
  "ReInvent Software OSS" at "https://maven.reinvent-software.de/nexus/content/groups/public"
)

Dependency

libraryDependencies += "software.reinvent" % "headless-chrome" % "0.1.4"

About

Implementation of the new headless chrome with chromedriver and selenium.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 78.5%
  • Scala 21.5%