chrome-devtools-kotlin / org.hildan.chrome.devtools.domains.domsnapshot / DocumentSnapshot

DocumentSnapshot

data class DocumentSnapshot

Document snapshot.

Official doc

Constructors

<init>

Document snapshot.

DocumentSnapshot(documentURL: StringIndex, title: StringIndex, baseURL: StringIndex, contentLanguage: StringIndex, encodingName: StringIndex, publicId: StringIndex, systemId: StringIndex, frameId: StringIndex, nodes: NodeTreeSnapshot, layout: LayoutTreeSnapshot, textBoxes: TextBoxSnapshot, scrollOffsetX: Double? = null, scrollOffsetY: Double? = null, contentWidth: Double? = null, contentHeight: Double? = null)

Properties

baseURL

Base URL that Document or FrameOwner node uses for URL completion.

val baseURL: StringIndex

contentHeight

Document content height.

val contentHeight: Double?

contentLanguage

Contains the document's content language.

val contentLanguage: StringIndex

contentWidth

Document content width.

val contentWidth: Double?

documentURL

Document URL that Document or FrameOwner node points to.

val documentURL: StringIndex

encodingName

Contains the document's character set encoding.

val encodingName: StringIndex

frameId

Frame ID for frame owner elements and also for the document node.

val frameId: StringIndex

layout

The nodes in the layout tree.

val layout: LayoutTreeSnapshot

nodes

A table with dom nodes.

val nodes: NodeTreeSnapshot

publicId

DocumentType node's publicId.

val publicId: StringIndex

scrollOffsetX

Horizontal scroll offset.

val scrollOffsetX: Double?

scrollOffsetY

Vertical scroll offset.

val scrollOffsetY: Double?

systemId

DocumentType node's systemId.

val systemId: StringIndex

textBoxes

The post-layout inline text nodes.

val textBoxes: TextBoxSnapshot

title

Document title.

val title: StringIndex