software.reinvent.headless.chrome.provider.HeadlessChromeProvider Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of headless-chrome Show documentation
Show all versions of headless-chrome Show documentation
Implementation of the headless chrome with chromedriver and selenium.
The newest version!
package software.reinvent.headless.chrome.provider;
import com.google.inject.Inject;
import com.google.inject.Provider;
import com.typesafe.config.Config;
import org.openqa.selenium.chrome.ChromeDriver;
import software.reinvent.headless.chrome.HeadlessDriver;
/**
* Created on 16.04.2017.
*
* @author Leonard Daume
*/
public class HeadlessChromeProvider implements Provider {
private Config config;
@Inject
public HeadlessChromeProvider(Config config) {
this.config = config;
}
@Override
public ChromeDriver get() {
return new HeadlessDriver(config).getChromeDriver();
}
}