public class DriverFactory extends Object
Modifier and Type | Class and Description |
---|---|
static class |
DriverFactory.Driver
List of external non-java web drivers.
|
Modifier and Type | Field and Description |
---|---|
static String |
CHROME |
static String |
DEFAULT_DRIVER |
static String |
FIREFOX |
static String |
IE |
static long |
IMPLICIT_WAIT
Default web drivers implicit wait
|
static String |
MODIFYHEADER_PATH |
static String |
REMOTE_WEBDRIVER_BROWSER_VERSION |
static String |
REMOTE_WEBDRIVER_PLATFORM_NAME |
static String |
REMOTE_WEBDRIVER_URL |
static String |
TARGET_BROWSER_BINARY_PATH |
static String |
WEBDRIVER_OPTIONS_ADDITIONAL_ARGS |
static String |
WITH_WHITE_LISTED_IPS |
Constructor and Description |
---|
DriverFactory() |
Modifier and Type | Method and Description |
---|---|
void |
clear()
Clear loaded drivers
|
org.openqa.selenium.WebDriver |
getDriver()
Get selenium driver.
|
static String |
getPath(DriverFactory.Driver currentDriver)
Get the path of the driver given in parameters.
|
void |
quit()
Quit loaded drivers
|
public static final long IMPLICIT_WAIT
public static final String IE
public static final String CHROME
public static final String FIREFOX
public static final String DEFAULT_DRIVER
public static final String REMOTE_WEBDRIVER_URL
public static final String REMOTE_WEBDRIVER_BROWSER_VERSION
public static final String REMOTE_WEBDRIVER_PLATFORM_NAME
public static final String TARGET_BROWSER_BINARY_PATH
public static final String WITH_WHITE_LISTED_IPS
public static final String WEBDRIVER_OPTIONS_ADDITIONAL_ARGS
public static final String MODIFYHEADER_PATH
public org.openqa.selenium.WebDriver getDriver()
public void clear()
public void quit()
public static String getPath(DriverFactory.Driver currentDriver)
currentDriver
- The driver to get the path ofCopyright © 2023 NoraUi. All rights reserved.