public enum Driver extends Enum<Driver>
| Enum Constant and Description |
|---|
CHROME
Corresponds to the ChromeDriver.
|
FIREFOX
Corresponds to the FirefoxDriver.
|
IE32
Corresponds to the 32-bit InternetExplorerDriver.
|
IE64
Corresponds to the 64-bit InternetExplorerDriver.
|
| Modifier and Type | Method and Description |
|---|---|
protected File |
copyResourceToTempFile(String resourceName,
String tempFileName,
String tempFileExtension)
Copies a resource to a temp file.
|
abstract org.openqa.selenium.WebDriver |
initDriver()
Should init a webDriver.
|
abstract org.openqa.selenium.WebDriver |
initDriver(org.openqa.selenium.Capabilities capabilities)
Should init a webDriver with the desired capabilities.
|
static Driver |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Driver[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Driver CHROME
public static final Driver FIREFOX
public static final Driver IE32
public static final Driver IE64
public static Driver[] values()
for (Driver c : Driver.values()) System.out.println(c);
public static Driver valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant
with the specified nameNullPointerException - if the argument is nullpublic abstract org.openqa.selenium.WebDriver initDriver()
public abstract org.openqa.selenium.WebDriver initDriver(org.openqa.selenium.Capabilities capabilities)
capabilities - The desired capabilities for the webDriver.protected File copyResourceToTempFile(String resourceName, String tempFileName, String tempFileExtension) throws IOException
resourceName - The name of the resource.tempFileName - The name of the temp file.tempFileExtension - The extension of the temp file.IOException - When there's an error while copying the resource.Copyright © 2013. All Rights Reserved.