Package net.thucydides.core.webdriver
Enum SupportedWebDriver
java.lang.Object
java.lang.Enum<SupportedWebDriver>
net.thucydides.core.webdriver.SupportedWebDriver
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<SupportedWebDriver>
,java.lang.constant.Constable
public enum SupportedWebDriver extends java.lang.Enum<SupportedWebDriver>
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
java.lang.Enum.EnumDesc<E extends java.lang.Enum<E>>
-
Enum Constant Summary
Enum Constants Enum Constant Description ANDROID
APPIUM
AppiumCHROME
Chrome WebDriver driver.EDGE
Microsoft EdgeFIREFOX
Firefox WebDriver driver.HTMLUNIT
HTMLUnit - fast, but no screenshots.IEXPLORER
Internet ExplorerIPHONE
OPERA
OperaPHANTOMJS
Phantom-JS driver - headless javascript.PROVIDED
A user-provided driverREMOTE
Remote web driverSAFARI
Safari -
Method Summary
Modifier and Type Method Description static SupportedWebDriver
forClass(java.lang.Class<?> driverClass)
static SupportedWebDriver
getClosestDriverValueTo(java.lang.String value)
static SupportedWebDriver
getDriverTypeFor(java.lang.String value)
java.lang.Class<? extends org.openqa.selenium.WebDriver>
getWebdriverClass()
static boolean
isSupported(java.lang.String driver)
boolean
isW3CCompliant()
static java.lang.String
listOfSupportedDrivers()
static java.util.List<java.lang.String>
supportedDrivers()
boolean
supportsJavascriptInjection()
static SupportedWebDriver
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static SupportedWebDriver
valueOrSynonymOf(java.lang.String driverName)
static SupportedWebDriver[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.Methods inherited from class java.lang.Enum
clone, compareTo, describeConstable, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
-
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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
valueOrSynonymOf
-
isSupported
public static boolean isSupported(java.lang.String driver) -
getWebdriverClass
public java.lang.Class<? extends org.openqa.selenium.WebDriver> getWebdriverClass() -
listOfSupportedDrivers
public static java.lang.String listOfSupportedDrivers() -
supportedDrivers
public static java.util.List<java.lang.String> supportedDrivers() -
getClosestDriverValueTo
-
getDriverTypeFor
public static SupportedWebDriver getDriverTypeFor(java.lang.String value) throws DriverConfigurationError- Throws:
DriverConfigurationError
-
forClass
-
supportsJavascriptInjection
public boolean supportsJavascriptInjection() -
isW3CCompliant
public boolean isW3CCompliant()
-