pl.wendigo.chrome.api.domsnapshot / DocumentSnapshot

DocumentSnapshot

data class DocumentSnapshot (source)

Document snapshot.

Link
DOMSnapshot#DocumentSnapshot type documentation.

Constructors

<init>

DocumentSnapshot(documentURL: 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)

Document snapshot.

Properties

baseURL

val baseURL: StringIndex

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

contentLanguage

val contentLanguage: StringIndex

Contains the document's content language.

documentURL

val documentURL: StringIndex

Document URL that Document or FrameOwner node points to.

encodingName

val encodingName: StringIndex

Contains the document's character set encoding.

frameId

val frameId: StringIndex

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

layout

val layout: LayoutTreeSnapshot

The nodes in the layout tree.

nodes

val nodes: NodeTreeSnapshot

A table with dom nodes.

publicId

val publicId: StringIndex

DocumentType node's publicId.

scrollOffsetX

val scrollOffsetX: Double?

Horizontal scroll offset.

scrollOffsetY

val scrollOffsetY: Double?

Vertical scroll offset.

systemId

val systemId: StringIndex

DocumentType node's systemId.

textBoxes

val textBoxes: TextBoxSnapshot

The post-layout inline text nodes.