public class WebDriverManager extends Object implements WebDriverPreparator
WebDriver instances.| Modifier and Type | Field and Description |
|---|---|
static String |
ANDROID
Deprecated.
|
static String |
APPIUM
AppiumWebDriver
|
static String |
CHROME
Chrome.
|
static String |
FIREFOX
Firefox.
|
static String |
HTMLUNIT
Html Unit.
|
static String |
IE
Internet Explorer.
|
static String |
PHANTOMJS
PhantomJS
|
static String |
REMOTE
RemoteWebDriver
|
static String |
SAFARI
Safari.
|
static String |
WEBDRIVER_FACTORY
System property name for user defined
WebDriverFactory. |
| Modifier and Type | Method and Description |
|---|---|
protected void |
finalize() |
org.openqa.selenium.WebDriver |
get() |
DriverOptions |
getDriverOptions()
Get current driver options.
|
static WebDriverManager |
getInstance()
Deprecated.
Use
newInstance() instead of this. |
boolean |
isSingleInstance()
Deprecated.
This does not work. Please just remove it.
|
WebDriverFactory |
lookupWebDriverFactory(String factoryName)
Lookup WebDriverFactory by name.
|
static WebDriverManager |
newInstance()
Construct WebDriverManager instance.
|
void |
quitAllDrivers()
Deprecated.
use
quitDriver() instead of this. |
void |
quitDriver()
Quit WebDriver instance.
|
static void |
quitDriversOnAllManagers()
Quit WebDriver instances on all WebDriverManager instances.
|
void |
setDriverOptions(DriverOptions driverOptions)
Set current driver options.
|
void |
setSingleInstance(boolean isSingleInstance)
Deprecated.
This does not work. Please just remove it.
|
void |
setWebDriverFactory(String factoryName)
Set current WebDriverFactory name.
|
void |
setWebDriverFactory(WebDriverFactory factory)
Set current WebDriverFactory.
|
public static final String FIREFOX
public static final String CHROME
public static final String IE
public static final String HTMLUNIT
public static final String SAFARI
public static final String REMOTE
public static final String APPIUM
public static final String PHANTOMJS
@Deprecated public static final String ANDROID
public static final String WEBDRIVER_FACTORY
WebDriverFactory.@Deprecated public static WebDriverManager getInstance()
newInstance() instead of this.public static WebDriverManager newInstance()
@Deprecated public boolean isSingleInstance()
@Deprecated public void setSingleInstance(boolean isSingleInstance)
isSingleInstance - if true, the number of WebDriver instance is only 1.public void setWebDriverFactory(WebDriverFactory factory)
factory - WebDriverFactory instance.public void setWebDriverFactory(String factoryName)
factoryName - WebDriverFactory name.public WebDriverFactory lookupWebDriverFactory(String factoryName)
factoryName - WebDriverFactory name.public DriverOptions getDriverOptions()
public void setDriverOptions(DriverOptions driverOptions)
driverOptions - DriverOptions instance.public org.openqa.selenium.WebDriver get()
throws IllegalArgumentException
get in interface com.google.common.base.Supplier<org.openqa.selenium.WebDriver>IllegalArgumentExceptionpublic void quitDriver()
@Deprecated public void quitAllDrivers()
quitDriver() instead of this.protected void finalize()
throws Throwable
public static void quitDriversOnAllManagers()
Copyright © 2016. All rights reserved.