Enum RestartBrowserForEach
- java.lang.Object
-
- java.lang.Enum<RestartBrowserForEach>
-
- net.serenitybdd.core.webdriver.configuration.RestartBrowserForEach
-
- All Implemented Interfaces:
Serializable
,Comparable<RestartBrowserForEach>
public enum RestartBrowserForEach extends Enum<RestartBrowserForEach>
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static RestartBrowserForEach
configuredIn(EnvironmentVariables environmentVariables)
boolean
restartBrowserForANew(RestartBrowserForEach restartLevel)
static RestartBrowserForEach
valueOf(String name)
Returns the enum constant of this type with the specified name.static RestartBrowserForEach[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
NEVER
public static final RestartBrowserForEach NEVER
-
FEATURE
public static final RestartBrowserForEach FEATURE
-
STORY
public static final RestartBrowserForEach STORY
-
SCENARIO
public static final RestartBrowserForEach SCENARIO
-
EXAMPLE
public static final RestartBrowserForEach EXAMPLE
-
-
Method Detail
-
values
public static RestartBrowserForEach[] 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 (RestartBrowserForEach c : RestartBrowserForEach.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static RestartBrowserForEach valueOf(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:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
restartBrowserForANew
public boolean restartBrowserForANew(RestartBrowserForEach restartLevel)
-
configuredIn
public static RestartBrowserForEach configuredIn(EnvironmentVariables environmentVariables)
-
-