Class DocumentSnapshot
java.lang.Object
org.openqa.selenium.devtools.v119.domsnapshot.model.DocumentSnapshot
Document snapshot.
-
Constructor Summary
ConstructorDescriptionDocumentSnapshot
(StringIndex documentURL, StringIndex title, StringIndex baseURL, StringIndex contentLanguage, StringIndex encodingName, StringIndex publicId, StringIndex systemId, StringIndex frameId, NodeTreeSnapshot nodes, LayoutTreeSnapshot layout, TextBoxSnapshot textBoxes, Optional<Number> scrollOffsetX, Optional<Number> scrollOffsetY, Optional<Number> contentWidth, Optional<Number> contentHeight) -
Method Summary
Modifier and TypeMethodDescriptionBase URL that `Document` or `FrameOwner` node uses for URL completion.Document content height.Contains the document's content language.Document content width.Document URL that `Document` or `FrameOwner` node points to.Contains the document's character set encoding.Frame ID for frame owner elements and also for the document node.The nodes in the layout tree.getNodes()
A table with dom nodes.`DocumentType` node's publicId.Horizontal scroll offset.Vertical scroll offset.`DocumentType` node's systemId.The post-layout inline text nodes.getTitle()
Document title.
-
Constructor Details
-
DocumentSnapshot
public DocumentSnapshot(StringIndex documentURL, StringIndex title, StringIndex baseURL, StringIndex contentLanguage, StringIndex encodingName, StringIndex publicId, StringIndex systemId, StringIndex frameId, NodeTreeSnapshot nodes, LayoutTreeSnapshot layout, TextBoxSnapshot textBoxes, Optional<Number> scrollOffsetX, Optional<Number> scrollOffsetY, Optional<Number> contentWidth, Optional<Number> contentHeight)
-
-
Method Details
-
getDocumentURL
Document URL that `Document` or `FrameOwner` node points to. -
getTitle
Document title. -
getBaseURL
Base URL that `Document` or `FrameOwner` node uses for URL completion. -
getContentLanguage
Contains the document's content language. -
getEncodingName
Contains the document's character set encoding. -
getPublicId
`DocumentType` node's publicId. -
getSystemId
`DocumentType` node's systemId. -
getFrameId
Frame ID for frame owner elements and also for the document node. -
getNodes
A table with dom nodes. -
getLayout
The nodes in the layout tree. -
getTextBoxes
The post-layout inline text nodes. -
getScrollOffsetX
Horizontal scroll offset. -
getScrollOffsetY
Vertical scroll offset. -
getContentWidth
Document content width. -
getContentHeight
Document content height.
-