Enum Class CSSRuleType

java.lang.Object
java.lang.Enum<CSSRuleType>
org.openqa.selenium.devtools.v141.css.model.CSSRuleType
All Implemented Interfaces:
Serializable, Comparable<CSSRuleType>, Constable

@Beta public enum CSSRuleType extends Enum<CSSRuleType>
Enum indicating the type of a CSS rule, used to represent the order of a style rule's ancestors. This list only contains rule types that are collected during the ancestor rule collection.
  • Enum Constant Details

    • MEDIARULE

      public static final CSSRuleType MEDIARULE
    • SUPPORTSRULE

      public static final CSSRuleType SUPPORTSRULE
    • CONTAINERRULE

      public static final CSSRuleType CONTAINERRULE
    • LAYERRULE

      public static final CSSRuleType LAYERRULE
    • SCOPERULE

      public static final CSSRuleType SCOPERULE
    • STYLERULE

      public static final CSSRuleType STYLERULE
    • STARTINGSTYLERULE

      public static final CSSRuleType STARTINGSTYLERULE
  • Method Details

    • values

      public static CSSRuleType[] 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 CSSRuleType 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
    • fromString

      public static CSSRuleType fromString(String s)
    • toString

      public String toString()
      Overrides:
      toString in class Enum<CSSRuleType>
    • toJson

      public String toJson()