Enum BrowserContentUsage
- java.lang.Object
-
- java.lang.Enum<BrowserContentUsage>
-
- ru.tinkoff.qa.neptune.selenium.content.management.BrowserContentUsage
-
- All Implemented Interfaces:
Serializable
,Comparable<BrowserContentUsage>
public enum BrowserContentUsage extends Enum<BrowserContentUsage>
This enum describes how often default content management strategy should be used.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description FOR_EVERY_METHOD
Default content management strategy should be applied once for each test-method or fixture/configuration method that invokesSeleniumStepContext.inBrowser()
FOR_EVERY_TEST_METHOD
Default content management strategy should be applied once for each test-method that invokesSeleniumStepContext.inBrowser()
ONCE
Default content management strategy should be applied once for a class on first invocation ofSeleniumStepContext.inBrowser()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static BrowserContentUsage
valueOf(String name)
Returns the enum constant of this type with the specified name.static BrowserContentUsage[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ONCE
public static final BrowserContentUsage ONCE
Default content management strategy should be applied once for a class on first invocation ofSeleniumStepContext.inBrowser()
-
FOR_EVERY_TEST_METHOD
public static final BrowserContentUsage FOR_EVERY_TEST_METHOD
Default content management strategy should be applied once for each test-method that invokesSeleniumStepContext.inBrowser()
-
FOR_EVERY_METHOD
public static final BrowserContentUsage FOR_EVERY_METHOD
Default content management strategy should be applied once for each test-method or fixture/configuration method that invokesSeleniumStepContext.inBrowser()
-
-
Method Detail
-
values
public static BrowserContentUsage[] 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 (BrowserContentUsage c : BrowserContentUsage.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static BrowserContentUsage 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
-
-