Class CSSProperty
- java.lang.Object
-
- org.openqa.selenium.devtools.v112.css.model.CSSProperty
-
public class CSSProperty extends java.lang.ObjectCSS property declaration data.
-
-
Constructor Summary
Constructors Constructor Description CSSProperty(java.lang.String name, java.lang.String value, java.util.Optional<java.lang.Boolean> important, java.util.Optional<java.lang.Boolean> implicit, java.util.Optional<java.lang.String> text, java.util.Optional<java.lang.Boolean> parsedOk, java.util.Optional<java.lang.Boolean> disabled, java.util.Optional<SourceRange> range, java.util.Optional<java.util.List<CSSProperty>> longhandProperties)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Optional<java.lang.Boolean>getDisabled()Whether the property is disabled by the user (present for source-based properties only).java.util.Optional<java.lang.Boolean>getImplicit()Whether the property is implicit (implies `false` if absent).java.util.Optional<java.lang.Boolean>getImportant()Whether the property has "!important" annotation (implies `false` if absent).java.util.Optional<java.util.List<CSSProperty>>getLonghandProperties()Parsed longhand components of this property if it is a shorthand.java.lang.StringgetName()The property name.java.util.Optional<java.lang.Boolean>getParsedOk()Whether the property is understood by the browser (implies `true` if absent).java.util.Optional<SourceRange>getRange()The entire property range in the enclosing style declaration (if available).java.util.Optional<java.lang.String>getText()The full property text as specified in the style.java.lang.StringgetValue()The property value.
-
-
-
Constructor Detail
-
CSSProperty
public CSSProperty(java.lang.String name, java.lang.String value, java.util.Optional<java.lang.Boolean> important, java.util.Optional<java.lang.Boolean> implicit, java.util.Optional<java.lang.String> text, java.util.Optional<java.lang.Boolean> parsedOk, java.util.Optional<java.lang.Boolean> disabled, java.util.Optional<SourceRange> range, java.util.Optional<java.util.List<CSSProperty>> longhandProperties)
-
-
Method Detail
-
getName
public java.lang.String getName()
The property name.
-
getValue
public java.lang.String getValue()
The property value.
-
getImportant
public java.util.Optional<java.lang.Boolean> getImportant()
Whether the property has "!important" annotation (implies `false` if absent).
-
getImplicit
public java.util.Optional<java.lang.Boolean> getImplicit()
Whether the property is implicit (implies `false` if absent).
-
getText
public java.util.Optional<java.lang.String> getText()
The full property text as specified in the style.
-
getParsedOk
public java.util.Optional<java.lang.Boolean> getParsedOk()
Whether the property is understood by the browser (implies `true` if absent).
-
getDisabled
public java.util.Optional<java.lang.Boolean> getDisabled()
Whether the property is disabled by the user (present for source-based properties only).
-
getRange
public java.util.Optional<SourceRange> getRange()
The entire property range in the enclosing style declaration (if available).
-
getLonghandProperties
@Beta public java.util.Optional<java.util.List<CSSProperty>> getLonghandProperties()
Parsed longhand components of this property if it is a shorthand. This field will be empty if the given property is not a shorthand.
-
-