public enum BrowserMode extends Enum<BrowserMode> implements SeleniumRepresentable
Encapsulates execution mode of browser ran by Selenium.
Enumerates all the browsers supported by Selenium.
| Enum Constant and Description |
|---|
CHROME
FirefoxChromeLauncher
|
FIREFOX
FirefoxLauncher
|
FIREFOX_CHROME
FirefoxChromeLauncher
|
FIREFOX_PROXY
FirefoxCustomProfileLauncher
|
FIREFOX_PROXY_INJECTION
ProxyInjectionFirefoxCustomProfileLauncher
|
FIREFOX2
Firefox2Launcher
|
FIREFOX3
Firefox3Launcher
|
GOOGLE_CHROME
GoogleChromeLauncher
|
IEXPLORE
InternetExplorerLauncher
|
IEXPLORE_HTA
HTABrowserLauncher
|
IEXPLORE_PROXY
InternetExplorerCustomProxyLauncher
|
IEXPLORE_PROXY_INJECTION
ProxyInjectionInternetExplorerCustomProxyLauncher
|
KONQUEROR
KonquerorLauncher
|
MOCK
MockBrowserLauncher
|
OPERA
OperaCustomProfileLauncher
|
SAFARI
SafariLauncher
|
SAFARI_PROXY
SafariCustomProfileLauncher
|
SAFARI_PROXY_INJECTION
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
static EnumSet<BrowserMode> |
getModesFromTypes(EnumSet<BrowserType> types)
Gets the set of browser modes, which are associated with browsers given by types (see
BrowserType). |
BrowserType |
getType()
Gets the browser type.
|
String |
inSeleniumRepresentation()
Gets string representations of mode.
|
static BrowserMode |
parseMode(String browserMode)
Parses the mode from given string representation.
|
static EnumSet<BrowserMode> |
parseModes(String browserModesEnumeration)
Returns set of browser modes derived from string enumeration of comma- and/or space-separated representation of
browser modes (
parseMode(String)). |
static BrowserMode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static BrowserMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final BrowserMode FIREFOX_PROXY
public static final BrowserMode FIREFOX
public static final BrowserMode CHROME
public static final BrowserMode FIREFOX_CHROME
public static final BrowserMode FIREFOX2
public static final BrowserMode FIREFOX3
public static final BrowserMode IEXPLORE_PROXY
public static final BrowserMode SAFARI
public static final BrowserMode SAFARI_PROXY
public static final BrowserMode IEXPLORE_HTA
public static final BrowserMode IEXPLORE
public static final BrowserMode OPERA
public static final BrowserMode IEXPLORE_PROXY_INJECTION
public static final BrowserMode FIREFOX_PROXY_INJECTION
public static final BrowserMode KONQUEROR
public static final BrowserMode MOCK
public static final BrowserMode GOOGLE_CHROME
@Deprecated public static final BrowserMode SAFARI_PROXY_INJECTION
ProxyInjectionSafariCustomProfileLauncher
Deprecated - isn't working yet
public static BrowserMode[] values()
for (BrowserMode c : BrowserMode.values()) System.out.println(c);
public static BrowserMode 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 BrowserMode parseMode(String browserMode)
Parses the mode from given string representation.
String representation is derived from string representing mode in Selenium.
E.g.: for "*pifirefox" string you get FIREFOX_PROXY_INJECTION mode
browserMode - the browser mode string representationIllegalArgumentException - if the given browserMode isn't supportedpublic static EnumSet<BrowserMode> parseModes(String browserModesEnumeration)
Returns set of browser modes derived from string enumeration of comma- and/or space-separated representation of
browser modes (parseMode(String)).
browserModesEnumeration - comma and/or spaces separated string enumeration of string representation of browser modesIllegalArgumentException - if one of the given browser modes isn't supportedpublic static EnumSet<BrowserMode> getModesFromTypes(EnumSet<BrowserType> types)
BrowserType).types - the set of browser typespublic String inSeleniumRepresentation()
inSeleniumRepresentation in interface SeleniumRepresentablepublic BrowserType getType()
Copyright © 2013 JBoss by Red Hat. All Rights Reserved.