Package net.thucydides.core.webdriver
Enum SupportedWebDriver
- All Implemented Interfaces:
Serializable
,Comparable<SupportedWebDriver>
,java.lang.constant.Constable
The list of supported web drivers.
These are the drivers that support screenshots.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionAppiumChrome WebDriver driver.Microsoft EdgeFirefox WebDriver driver.HTMLUnit - fast, but no screenshots.Internet ExplorerOperaPhantom-JS driver - headless javascript.A user-provided driverRemote web driverSafari -
Method Summary
Modifier and TypeMethodDescriptionstatic SupportedWebDriver
static SupportedWebDriver
getClosestDriverValueTo
(String value) static SupportedWebDriver
getDriverTypeFor
(String value) Class<? extends org.openqa.selenium.WebDriver>
static boolean
isSupported
(String driver) boolean
static String
boolean
static SupportedWebDriver
Returns the enum constant of this type with the specified name.static SupportedWebDriver
valueOrSynonymOf
(String driverName) static SupportedWebDriver[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
FIREFOX
Firefox WebDriver driver. -
CHROME
Chrome WebDriver driver. -
OPERA
Opera -
HTMLUNIT
HTMLUnit - fast, but no screenshots. -
PHANTOMJS
Phantom-JS driver - headless javascript. -
REMOTE
Remote web driver -
IPHONE
-
ANDROID
-
IEXPLORER
Internet Explorer -
EDGE
Microsoft Edge -
SAFARI
Safari -
APPIUM
Appium -
PROVIDED
A user-provided driver
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
valueOrSynonymOf
-
isSupported
-
getWebdriverClass
-
listOfSupportedDrivers
-
supportedDrivers
-
getClosestDriverValueTo
-
getDriverTypeFor
- Throws:
DriverConfigurationError
-
forClass
-
supportsJavascriptInjection
public boolean supportsJavascriptInjection() -
isW3CCompliant
public boolean isW3CCompliant()
-