Enum Class By.AttributeOperator

java.lang.Object
java.lang.Enum<By.AttributeOperator>
org.jboss.elemento.By.AttributeOperator
All Implemented Interfaces:
Serializable, Comparable<By.AttributeOperator>, Constable
Enclosing class:
By

public static enum By.AttributeOperator extends Enum<By.AttributeOperator>
Operator used for attribute selectors.
  • Nested Class Summary

    Nested classes/interfaces inherited from class Enum

    Enum.EnumDesc<E>
  • Enum Constant Summary

    Enum Constants
    Enum Constant
    Description
    [attr*=value]: Represents elements with an attribute name of attr whose value contains at least one occurrence of value within the string.
    [attr|=value]: Represents elements with an attribute name of attr whose value can be exactly value or can begin with value immediately followed by a hyphen, - (U+002D).
    [attr~=value]: Represents elements with an attribute name of attr whose value is a whitespace-separated list of words, one of which is exactly value.
    [attr$=value]: Represents elements with an attribute name of attr whose value is suffixed (followed) by value.
    [attr^=value]: Represents elements with an attribute name of attr whose value is prefixed (preceded) by value.
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the enum constant of this class with the specified name.
    Returns an array containing the constants of this enum class, in the order they are declared.

    Methods inherited from class Object

    getClass, notify, notifyAll, wait, wait, wait
  • Enum Constant Details

    • STARTS_WITH

      public static final By.AttributeOperator STARTS_WITH
      [attr^=value]: Represents elements with an attribute name of attr whose value is prefixed (preceded) by value.
    • ENDS_WITH

      public static final By.AttributeOperator ENDS_WITH
      [attr$=value]: Represents elements with an attribute name of attr whose value is suffixed (followed) by value.
    • CONTAINS

      public static final By.AttributeOperator CONTAINS
      [attr*=value]: Represents elements with an attribute name of attr whose value contains at least one occurrence of value within the string.
    • CONTAINS_WORD

      public static final By.AttributeOperator CONTAINS_WORD
      [attr~=value]: Represents elements with an attribute name of attr whose value is a whitespace-separated list of words, one of which is exactly value.
    • CONTAINS_TOKEN

      public static final By.AttributeOperator CONTAINS_TOKEN
      [attr|=value]: Represents elements with an attribute name of attr whose value can be exactly value or can begin with value immediately followed by a hyphen, - (U+002D). It is often used for language subcode matches.
  • Method Details

    • values

      public static By.AttributeOperator[] 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 By.AttributeOperator 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