Enum Class How
- All Implemented Interfaces:
Serializable,Comparable<How>,Constable
Enumeration representing different strategies for locating an element.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionRepresents an alternate text for an element.Represents a label for an element.Represents a placeholder value for an element.Represents the role of an element.Represents the ID associated with a test.Represents a text value.Represents the title of an element.Represents an unset value for a field. -
Method Summary
-
Enum Constant Details
-
ALT_TEXT
Represents an alternate text for an element. -
LABEL
Represents a label for an element. -
PLACEHOLDER
Represents a placeholder value for an element. This can be used to indicate that the element should display a temporary or default value until it is replaced with actual content. Usage: PLACEHOLDER placeholder = PLACEHOLDER.PLACEHOLDER; -
ROLE
Represents the role of an element. -
TEST_ID
Represents the ID associated with a test. -
TEXT
Represents a text value. This variable is used to store a text value that can be associated with different elements or objects in a system. The text can be used as an alternate text, label, placeholder, role, test ID, title, or for other purposes. -
TITLE
Represents the title of an element. -
UNSET
Represents an unset value for a field.This value is used to indicate that a field has not been set or has been intentionally left blank.
Example usage:
How how = How.UNSET;
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException- if the argument is null
-