All Downloads are FREE. Search and download functionalities are using the official Maven repository.

software.reinvent.headless.chrome.provider.HeadlessChromeProvider Maven / Gradle / Ivy

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();
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy