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 ANDROIDAPPIUMAppiumCHROMEChrome WebDriver driver.EDGEMicrosoft EdgeFIREFOXFirefox WebDriver driver.HTMLUNITHTMLUnit - fast, but no screenshots.IEXPLORERInternet ExplorerIPHONEOPERAOpera - use it with SauceLabsPHANTOMJSPhantom-JS driver - headless javascript.PROVIDEDA user-provided driverREMOTERemote web driverSAFARISafari -
Method Summary
Modifier and Type Method Description static SupportedWebDriverforClass(java.lang.Class<?> driverClass)static SupportedWebDrivergetClosestDriverValueTo(java.lang.String value)static SupportedWebDrivergetDriverTypeFor(java.lang.String value)java.lang.Class<? extends org.openqa.selenium.WebDriver>getWebdriverClass()static booleanisSupported(java.lang.String driver)booleanisW3CCompliant()static java.lang.StringlistOfSupportedDrivers()static java.util.List<java.lang.String>supportedDrivers()booleansupportsJavascriptInjection()static SupportedWebDrivervalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static SupportedWebDrivervalueOrSynonymOf(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, valueOfMethods 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 - use it with SauceLabs -
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()
-