public enum BrowserType extends Enum<BrowserType>
Enumeration of supported browsers.
This enumeration has direct association with browser modes, see BrowserMode.
| Enum Constant and Description |
|---|
FIREFOX
The Mozilla Firefox browser
|
GOOGLE_CHROME
The Google Chrome browser
|
IEXPLORE
The Internet Explorer browser
|
KONQUEROR
The Konqueror browser
|
MOCK
Mock browser
|
OPERA
The Opera browser
|
SAFARI
The Safari browser
|
| Modifier and Type | Method and Description |
|---|---|
static BrowserType |
parseType(String browserType)
Parses the type in case-insensitive manner.
|
static EnumSet<BrowserType> |
parseTypes(String browserTypesEnumeration)
Returns set of browser types derived from string enumeration of comma- and/or space-separated representation of
browser types (
parseType(String)). |
static BrowserType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static BrowserType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final BrowserType FIREFOX
public static final BrowserType IEXPLORE
public static final BrowserType SAFARI
public static final BrowserType OPERA
public static final BrowserType GOOGLE_CHROME
public static final BrowserType KONQUEROR
public static final BrowserType MOCK
public static BrowserType[] values()
for (BrowserType c : BrowserType.values()) System.out.println(c);
public static BrowserType 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 BrowserType parseType(String browserType)
browserType - the browser typeIllegalArgumentException - if the given browserMode isn't supportedpublic static EnumSet<BrowserType> parseTypes(String browserTypesEnumeration)
Returns set of browser types derived from string enumeration of comma- and/or space-separated representation of
browser types (parseType(String)).
browserTypesEnumeration - comma and/or spaces separated string enumeration of string representation of browser typesIllegalArgumentException - if one of the given browser modes isn't supportedCopyright © 2013 JBoss by Red Hat. All Rights Reserved.