Package org.ndviet.library.webui.driver
Enum BrowserFactory
- java.lang.Object
-
- java.lang.Enum<BrowserFactory>
-
- org.ndviet.library.webui.driver.BrowserFactory
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<BrowserFactory>
public enum BrowserFactory extends java.lang.Enum<BrowserFactory>
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract org.openqa.selenium.WebDrivercreateLocalDriver()abstract org.openqa.selenium.remote.AbstractDriverOptions<?>getOptions()static BrowserFactoryvalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static BrowserFactory[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
CHROME
public static final BrowserFactory CHROME
-
FIREFOX
public static final BrowserFactory FIREFOX
-
EDGE
public static final BrowserFactory EDGE
-
SAFARI
public static final BrowserFactory SAFARI
-
-
Method Detail
-
values
public static BrowserFactory[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (BrowserFactory c : BrowserFactory.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static BrowserFactory valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
createLocalDriver
public abstract org.openqa.selenium.WebDriver createLocalDriver()
-
getOptions
public abstract org.openqa.selenium.remote.AbstractDriverOptions<?> getOptions()
-
-