Class CSSStyleSheetHeader

java.lang.Object
org.openqa.selenium.devtools.v126.css.model.CSSStyleSheetHeader

public class CSSStyleSheetHeader extends Object
CSS stylesheet metainformation.
  • Constructor Details

  • Method Details

    • getStyleSheetId

      public StyleSheetId getStyleSheetId()
      The stylesheet identifier.
    • getFrameId

      public FrameId getFrameId()
      Owner frame identifier.
    • getSourceURL

      public String getSourceURL()
      Stylesheet resource URL. Empty if this is a constructed stylesheet created using new CSSStyleSheet() (but non-empty if this is a constructed stylesheet imported as a CSS module script).
    • getSourceMapURL

      public Optional<String> getSourceMapURL()
      URL of source map associated with the stylesheet (if any).
    • getOrigin

      public StyleSheetOrigin getOrigin()
      Stylesheet origin.
    • getTitle

      public String getTitle()
      Stylesheet title.
    • getOwnerNode

      public Optional<BackendNodeId> getOwnerNode()
      The backend id for the owner node of the stylesheet.
    • getDisabled

      public Boolean getDisabled()
      Denotes whether the stylesheet is disabled.
    • getHasSourceURL

      public Optional<Boolean> getHasSourceURL()
      Whether the sourceURL field value comes from the sourceURL comment.
    • getIsInline

      public Boolean getIsInline()
      Whether this stylesheet is created for STYLE tag by parser. This flag is not set for document.written STYLE tags.
    • getIsMutable

      public Boolean getIsMutable()
      Whether this stylesheet is mutable. Inline stylesheets become mutable after they have been modified via CSSOM API. `` element's stylesheets become mutable only if DevTools modifies them. Constructed stylesheets (new CSSStyleSheet()) are mutable immediately after creation.
    • getIsConstructed

      public Boolean getIsConstructed()
      True if this stylesheet is created through new CSSStyleSheet() or imported as a CSS module script.
    • getStartLine

      public Number getStartLine()
      Line offset of the stylesheet within the resource (zero based).
    • getStartColumn

      public Number getStartColumn()
      Column offset of the stylesheet within the resource (zero based).
    • getLength

      public Number getLength()
      Size of the content (in characters).
    • getEndLine

      public Number getEndLine()
      Line offset of the end of the stylesheet within the resource (zero based).
    • getEndColumn

      public Number getEndColumn()
      Column offset of the end of the stylesheet within the resource (zero based).
    • getLoadingFailed

      @Beta public Optional<Boolean> getLoadingFailed()
      If the style sheet was loaded from a network resource, this indicates when the resource failed to load