public enum Browser extends Enum<Browser>
Enum Constant and Description |
---|
ANDROID |
CHROME |
EDGE |
FIREFOX |
HTMLUNIT |
INTERNETEXPLORER |
IPAD |
IPHONE |
MARIONETTE |
NONE |
OPERA |
PHANTOMJS |
SAFARI |
Modifier and Type | Method and Description |
---|---|
static Browser |
lookup(String b)
allows the browser selected to be passed in with a case insensitive name
|
static Browser |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Browser[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Browser NONE
public static final Browser HTMLUNIT
public static final Browser FIREFOX
public static final Browser MARIONETTE
public static final Browser CHROME
public static final Browser INTERNETEXPLORER
public static final Browser EDGE
public static final Browser ANDROID
public static final Browser IPAD
public static final Browser IPHONE
public static final Browser OPERA
public static final Browser SAFARI
public static final Browser PHANTOMJS
public static Browser[] values()
for (Browser c : Browser.values()) System.out.println(c);
public static Browser 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 static Browser lookup(String b) throws InvalidBrowserException
b
- - the string name of the browserInvalidBrowserException
- If a browser that is not one specified in the
Selenium.Browser class is used, this exception will be thrownCopyright © 2017. All rights reserved.