Class DocumentSnapshot
- java.lang.Object
-
- org.openqa.selenium.devtools.v114.domsnapshot.model.DocumentSnapshot
-
public class DocumentSnapshot extends java.lang.ObjectDocument snapshot.
-
-
Constructor Summary
Constructors Constructor Description DocumentSnapshot(StringIndex documentURL, StringIndex title, StringIndex baseURL, StringIndex contentLanguage, StringIndex encodingName, StringIndex publicId, StringIndex systemId, StringIndex frameId, NodeTreeSnapshot nodes, LayoutTreeSnapshot layout, TextBoxSnapshot textBoxes, java.util.Optional<java.lang.Number> scrollOffsetX, java.util.Optional<java.lang.Number> scrollOffsetY, java.util.Optional<java.lang.Number> contentWidth, java.util.Optional<java.lang.Number> contentHeight)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringIndexgetBaseURL()Base URL that `Document` or `FrameOwner` node uses for URL completion.java.util.Optional<java.lang.Number>getContentHeight()Document content height.StringIndexgetContentLanguage()Contains the document's content language.java.util.Optional<java.lang.Number>getContentWidth()Document content width.StringIndexgetDocumentURL()Document URL that `Document` or `FrameOwner` node points to.StringIndexgetEncodingName()Contains the document's character set encoding.StringIndexgetFrameId()Frame ID for frame owner elements and also for the document node.LayoutTreeSnapshotgetLayout()The nodes in the layout tree.NodeTreeSnapshotgetNodes()A table with dom nodes.StringIndexgetPublicId()`DocumentType` node's publicId.java.util.Optional<java.lang.Number>getScrollOffsetX()Horizontal scroll offset.java.util.Optional<java.lang.Number>getScrollOffsetY()Vertical scroll offset.StringIndexgetSystemId()`DocumentType` node's systemId.TextBoxSnapshotgetTextBoxes()The post-layout inline text nodes.StringIndexgetTitle()Document title.
-
-
-
Constructor Detail
-
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, java.util.Optional<java.lang.Number> scrollOffsetX, java.util.Optional<java.lang.Number> scrollOffsetY, java.util.Optional<java.lang.Number> contentWidth, java.util.Optional<java.lang.Number> contentHeight)
-
-
Method Detail
-
getDocumentURL
public StringIndex getDocumentURL()
Document URL that `Document` or `FrameOwner` node points to.
-
getTitle
public StringIndex getTitle()
Document title.
-
getBaseURL
public StringIndex getBaseURL()
Base URL that `Document` or `FrameOwner` node uses for URL completion.
-
getContentLanguage
public StringIndex getContentLanguage()
Contains the document's content language.
-
getEncodingName
public StringIndex getEncodingName()
Contains the document's character set encoding.
-
getPublicId
public StringIndex getPublicId()
`DocumentType` node's publicId.
-
getSystemId
public StringIndex getSystemId()
`DocumentType` node's systemId.
-
getFrameId
public StringIndex getFrameId()
Frame ID for frame owner elements and also for the document node.
-
getNodes
public NodeTreeSnapshot getNodes()
A table with dom nodes.
-
getLayout
public LayoutTreeSnapshot getLayout()
The nodes in the layout tree.
-
getTextBoxes
public TextBoxSnapshot getTextBoxes()
The post-layout inline text nodes.
-
getScrollOffsetX
public java.util.Optional<java.lang.Number> getScrollOffsetX()
Horizontal scroll offset.
-
getScrollOffsetY
public java.util.Optional<java.lang.Number> getScrollOffsetY()
Vertical scroll offset.
-
getContentWidth
public java.util.Optional<java.lang.Number> getContentWidth()
Document content width.
-
getContentHeight
public java.util.Optional<java.lang.Number> getContentHeight()
Document content height.
-
-