Package net.thucydides.core.webdriver
Enum SupportedWebDriver
- java.lang.Object
-
- java.lang.Enum<SupportedWebDriver>
-
- net.thucydides.core.webdriver.SupportedWebDriver
-
- All Implemented Interfaces:
Serializable
,Comparable<SupportedWebDriver>
public enum SupportedWebDriver extends Enum<SupportedWebDriver>
The list of supported web drivers. These are the drivers that support screenshots.
-
-
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
Opera - use it with SauceLabsPHANTOMJS
Phantom-JS driver - headless javascript.PROVIDED
A user-provided driverREMOTE
Remote web driverSAFARI
Safari
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static SupportedWebDriver
forClass(Class<?> driverClass)
static SupportedWebDriver
getClosestDriverValueTo(String value)
static SupportedWebDriver
getDriverTypeFor(String value)
Class<? extends org.openqa.selenium.WebDriver>
getWebdriverClass()
static String
listOfSupportedDrivers()
boolean
supportsJavascriptInjection()
static SupportedWebDriver
valueOf(String name)
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 Detail
-
FIREFOX
public static final SupportedWebDriver FIREFOX
Firefox WebDriver driver.
-
CHROME
public static final SupportedWebDriver CHROME
Chrome WebDriver driver.
-
OPERA
public static final SupportedWebDriver OPERA
Opera - use it with SauceLabs
-
HTMLUNIT
public static final SupportedWebDriver HTMLUNIT
HTMLUnit - fast, but no screenshots.
-
PHANTOMJS
public static final SupportedWebDriver PHANTOMJS
Phantom-JS driver - headless javascript.
-
REMOTE
public static final SupportedWebDriver REMOTE
Remote web driver
-
IPHONE
public static final SupportedWebDriver IPHONE
-
ANDROID
public static final SupportedWebDriver ANDROID
-
IEXPLORER
public static final SupportedWebDriver IEXPLORER
Internet Explorer
-
EDGE
public static final SupportedWebDriver EDGE
Microsoft Edge
-
SAFARI
public static final SupportedWebDriver SAFARI
Safari
-
APPIUM
public static final SupportedWebDriver APPIUM
Appium
-
PROVIDED
public static final SupportedWebDriver PROVIDED
A user-provided driver
-
-
Method Detail
-
values
public static SupportedWebDriver[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (SupportedWebDriver c : SupportedWebDriver.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static SupportedWebDriver valueOf(String name)
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
public static SupportedWebDriver valueOrSynonymOf(String driverName)
-
getWebdriverClass
public Class<? extends org.openqa.selenium.WebDriver> getWebdriverClass()
-
listOfSupportedDrivers
public static String listOfSupportedDrivers()
-
getClosestDriverValueTo
public static SupportedWebDriver getClosestDriverValueTo(String value)
-
getDriverTypeFor
public static SupportedWebDriver getDriverTypeFor(String value) throws DriverConfigurationError
- Throws:
DriverConfigurationError
-
forClass
public static SupportedWebDriver forClass(Class<?> driverClass)
-
supportsJavascriptInjection
public boolean supportsJavascriptInjection()
-
-