pl.wendigo.chrome.api.domsnapshot / GetSnapshotResponse

GetSnapshotResponse

data class GetSnapshotResponse (source)

Represents response frame that is returned from DOMSnapshot#getSnapshot operation call. Returns a document snapshot, including the full DOM tree of the root node (including iframes, template contents, and imported documents) in a flattened array, as well as layout and white-listed computed style information for the nodes. Shadow DOM in the returned DOM tree is flattened.

Link
DOMSnapshot#getSnapshot method documentation.

See Also

DOMSnapshotOperations.getSnapshot

Constructors

<init>

GetSnapshotResponse(domNodes: List<DOMNode>, layoutTreeNodes: List<LayoutTreeNode>, computedStyles: List<ComputedStyle>)

Represents response frame that is returned from DOMSnapshot#getSnapshot operation call. Returns a document snapshot, including the full DOM tree of the root node (including iframes, template contents, and imported documents) in a flattened array, as well as layout and white-listed computed style information for the nodes. Shadow DOM in the returned DOM tree is flattened.

Properties

computedStyles

val computedStyles: List<ComputedStyle>

Whitelisted ComputedStyle properties for each node in the layout tree.

domNodes

val domNodes: List<DOMNode>

The nodes in the DOM tree. The DOMNode at index 0 corresponds to the root document.

layoutTreeNodes

val layoutTreeNodes: List<LayoutTreeNode>

The nodes in the layout tree.