Class CSSStyleSheetHeader
java.lang.Object
org.openqa.selenium.devtools.v131.css.model.CSSStyleSheetHeader
CSS stylesheet metainformation.
-
Constructor Summary
ConstructorsConstructorDescriptionCSSStyleSheetHeader
(StyleSheetId styleSheetId, FrameId frameId, String sourceURL, Optional<String> sourceMapURL, StyleSheetOrigin origin, String title, Optional<BackendNodeId> ownerNode, Boolean disabled, Optional<Boolean> hasSourceURL, Boolean isInline, Boolean isMutable, Boolean isConstructed, Number startLine, Number startColumn, Number length, Number endLine, Number endColumn, Optional<Boolean> loadingFailed) -
Method Summary
Modifier and TypeMethodDescriptionDenotes whether the stylesheet is disabled.Column offset of the end of the stylesheet within the resource (zero based).Line offset of the end of the stylesheet within the resource (zero based).Owner frame identifier.Whether the sourceURL field value comes from the sourceURL comment.True if this stylesheet is created through new CSSStyleSheet() or imported as a CSS module script.Whether this stylesheet is created for STYLE tag by parser.Whether this stylesheet is mutable.Size of the content (in characters).If the style sheet was loaded from a network resource, this indicates when the resource failed to loadStylesheet origin.The backend id for the owner node of the stylesheet.URL of source map associated with the stylesheet (if any).Stylesheet resource URL.Column offset of the stylesheet within the resource (zero based).Line offset of the stylesheet within the resource (zero based).The stylesheet identifier.getTitle()
Stylesheet title.
-
Constructor Details
-
CSSStyleSheetHeader
public CSSStyleSheetHeader(StyleSheetId styleSheetId, FrameId frameId, String sourceURL, Optional<String> sourceMapURL, StyleSheetOrigin origin, String title, Optional<BackendNodeId> ownerNode, Boolean disabled, Optional<Boolean> hasSourceURL, Boolean isInline, Boolean isMutable, Boolean isConstructed, Number startLine, Number startColumn, Number length, Number endLine, Number endColumn, Optional<Boolean> loadingFailed)
-
-
Method Details
-
getStyleSheetId
The stylesheet identifier. -
getFrameId
Owner frame identifier. -
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
URL of source map associated with the stylesheet (if any). -
getOrigin
Stylesheet origin. -
getTitle
Stylesheet title. -
getOwnerNode
The backend id for the owner node of the stylesheet. -
getDisabled
Denotes whether the stylesheet is disabled. -
getHasSourceURL
Whether the sourceURL field value comes from the sourceURL comment. -
getIsInline
Whether this stylesheet is created for STYLE tag by parser. This flag is not set for document.written STYLE tags. -
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
True if this stylesheet is created through new CSSStyleSheet() or imported as a CSS module script. -
getStartLine
Line offset of the stylesheet within the resource (zero based). -
getStartColumn
Column offset of the stylesheet within the resource (zero based). -
getLength
Size of the content (in characters). -
getEndLine
Line offset of the end of the stylesheet within the resource (zero based). -
getEndColumn
Column offset of the end of the stylesheet within the resource (zero based). -
getLoadingFailed
If the style sheet was loaded from a network resource, this indicates when the resource failed to load
-