public enum BrowserFlavors extends Enum<BrowserFlavors>
Enum Constant and Description |
---|
CHROME |
FIREFOX |
HTMLUNIT |
INTERNET_EXPLORER |
MICROSOFT_EDGE |
OPERA |
PHANTOMJS |
SAFARI |
Modifier and Type | Method and Description |
---|---|
String |
getBrowser()
Returns the browser flavor as a string
|
static BrowserFlavors |
getBrowser(String browser) |
static BrowserFlavors[] |
getBrowsersWithoutAlertSupport() |
static String |
getSupportedBrowsersAsCSV()
This method returns all the browser flavors that are supported by the SeLion framework as a String with each
value delimited by a comma.
|
static boolean |
isHeadLessBrowser(String flavor) |
static BrowserFlavors |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static BrowserFlavors[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final BrowserFlavors FIREFOX
public static final BrowserFlavors INTERNET_EXPLORER
public static final BrowserFlavors MICROSOFT_EDGE
public static final BrowserFlavors HTMLUNIT
public static final BrowserFlavors CHROME
public static final BrowserFlavors SAFARI
public static final BrowserFlavors OPERA
public static final BrowserFlavors PHANTOMJS
public static BrowserFlavors[] values()
for (BrowserFlavors c : BrowserFlavors.values()) System.out.println(c);
public static BrowserFlavors 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 String getBrowser()
public static String getSupportedBrowsersAsCSV()
public static BrowserFlavors getBrowser(String browser)
browser
- - The raw browser string for which the enum format is sought.BrowserFlavors
enum that represents a SeLion compliant browser.public static BrowserFlavors[] getBrowsersWithoutAlertSupport()
BrowserFlavors
which represents the set of browser flavors on which alerts are
NOT supported.public static boolean isHeadLessBrowser(String flavor)
flavor
- - A object that represents a browser.true
if the given browser is a headless browser.Copyright © 2016 PayPal Open Source. All rights reserved.