public class ChromeDriverProvider extends Object implements DriverProvider
Modifier and Type | Field and Description |
---|---|
static String |
CHROME_DRIVER_DEFAULT_EXECUTABLE_NAME |
static String |
CHROME_DRIVER_DEFAULT_PATH_LINUX |
static String |
CHROME_DRIVER_DEFAULT_PATH_MAC
"/Applications/Google Chrome.app/Contents/MacOS/Google Chrome" doesn't work
|
static String |
CHROME_DRIVER_DEFAULT_PATH_WINVISTA |
static String |
CHROME_DRIVER_DEFAULT_PATH_WINXP |
static String |
CHROME_DRIVER_WINDOWS_EXECUTABLE_NAME |
protected org.openqa.selenium.chrome.ChromeDriver |
driver |
static String |
SYSPROP_CHROME_DRIVER_PATH |
Constructor and Description |
---|
ChromeDriverProvider() |
Modifier and Type | Method and Description |
---|---|
protected static File |
findExecutableOnPath(String executableName) |
org.openqa.selenium.remote.RemoteWebDriver |
get() |
org.openqa.selenium.remote.RemoteWebDriver |
init(org.openqa.selenium.remote.DesiredCapabilities dc) |
void |
quit() |
public static final String CHROME_DRIVER_DEFAULT_PATH_LINUX
public static final String CHROME_DRIVER_DEFAULT_PATH_MAC
public static final String CHROME_DRIVER_DEFAULT_PATH_WINVISTA
public static final String CHROME_DRIVER_DEFAULT_PATH_WINXP
public static final String CHROME_DRIVER_DEFAULT_EXECUTABLE_NAME
public static final String CHROME_DRIVER_WINDOWS_EXECUTABLE_NAME
public static final String SYSPROP_CHROME_DRIVER_PATH
protected org.openqa.selenium.chrome.ChromeDriver driver
public ChromeDriverProvider()
public org.openqa.selenium.remote.RemoteWebDriver init(org.openqa.selenium.remote.DesiredCapabilities dc) throws Exception
init
in interface DriverProvider
Exception
protected static File findExecutableOnPath(String executableName)
public org.openqa.selenium.remote.RemoteWebDriver get()
get
in interface DriverProvider
public void quit()
quit
in interface DriverProvider
Copyright © 2017 Nuxeo. All rights reserved.