public enum SupportedBrowser extends Enum<SupportedBrowser>
This enum provides a couple of useful conversion methods:
toClass()
, to get the corresponding concrete WebDriver
class,
toCapabilities()
, to get the corresponding DesiredCapabilities
.
Enum Constant and Description |
---|
CHROME |
FIREFOX |
HTML_UNIT |
IE |
SAFARI |
Modifier and Type | Method and Description |
---|---|
org.openqa.selenium.remote.DesiredCapabilities |
toCapabilities() |
Class<org.openqa.selenium.WebDriver> |
toClass() |
String |
toString() |
static SupportedBrowser |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static SupportedBrowser[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SupportedBrowser CHROME
public static final SupportedBrowser FIREFOX
public static final SupportedBrowser SAFARI
public static final SupportedBrowser IE
public static final SupportedBrowser HTML_UNIT
public static SupportedBrowser[] values()
for (SupportedBrowser c : SupportedBrowser.values()) System.out.println(c);
public static SupportedBrowser 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 Class<org.openqa.selenium.WebDriver> toClass() throws ClassNotFoundException
ClassNotFoundException
public org.openqa.selenium.remote.DesiredCapabilities toCapabilities()
public String toString()
toString
in class Enum<SupportedBrowser>
Copyright © 2015. All rights reserved.