Enum Class How

java.lang.Object
java.lang.Enum<How>
nl.detestbaas.playwright.annotations.How
All Implemented Interfaces:
Serializable, Comparable<How>, Constable

public enum How extends Enum<How>
Enumeration representing different strategies for locating an element.
  • Enum Constant Details

    • ALT_TEXT

      public static final How ALT_TEXT
      Represents an alternate text for an element.
    • LABEL

      public static final How LABEL
      Represents a label for an element.
    • PLACEHOLDER

      public static final How 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

      public static final How ROLE
      Represents the role of an element.
    • TEST_ID

      public static final How TEST_ID
      Represents the ID associated with a test.
    • TEXT

      public static final How 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

      public static final How TITLE
      Represents the title of an element.
    • UNSET

      public static final How 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

      public static How[] 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

      public static How valueOf(String name)
      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 name
      NullPointerException - if the argument is null