Class CSSMedia
java.lang.Object
org.openqa.selenium.devtools.v129.css.model.CSSMedia
CSS media rule descriptor.
-
Nested Class Summary
-
Constructor Summary
ConstructorDescriptionCSSMedia
(String text, CSSMedia.Source source, Optional<String> sourceURL, Optional<SourceRange> range, Optional<StyleSheetId> styleSheetId, Optional<List<MediaQuery>> mediaList) -
Method Summary
Modifier and TypeMethodDescriptionArray of media queries.getRange()
The associated rule (@media or @import) header range in the enclosing stylesheet (if available).Source of the media query: "mediaRule" if specified by a @media rule, "importRule" if specified by an @import rule, "linkedSheet" if specified by a "media" attribute in a linked stylesheet's LINK tag, "inlineSheet" if specified by a "media" attribute in an inline stylesheet's STYLE tag.URL of the document containing the media query description.Identifier of the stylesheet containing this object (if exists).getText()
Media query text.
-
Constructor Details
-
CSSMedia
public CSSMedia(String text, CSSMedia.Source source, Optional<String> sourceURL, Optional<SourceRange> range, Optional<StyleSheetId> styleSheetId, Optional<List<MediaQuery>> mediaList)
-
-
Method Details
-
getText
Media query text. -
getSource
Source of the media query: "mediaRule" if specified by a @media rule, "importRule" if specified by an @import rule, "linkedSheet" if specified by a "media" attribute in a linked stylesheet's LINK tag, "inlineSheet" if specified by a "media" attribute in an inline stylesheet's STYLE tag. -
getSourceURL
URL of the document containing the media query description. -
getRange
The associated rule (@media or @import) header range in the enclosing stylesheet (if available). -
getStyleSheetId
Identifier of the stylesheet containing this object (if exists). -
getMediaList
Array of media queries.
-