pl.wendigo.chrome.api.domsnapshot / CaptureSnapshotResponse

CaptureSnapshotResponse

data class CaptureSnapshotResponse (source)

Represents response frame that is returned from DOMSnapshot#captureSnapshot 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#captureSnapshot method documentation.

See Also

DOMSnapshotOperations.captureSnapshot

Constructors

<init>

CaptureSnapshotResponse(documents: List<DocumentSnapshot>, strings: List<String>)

Represents response frame that is returned from DOMSnapshot#captureSnapshot 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

documents

val documents: List<DocumentSnapshot>

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

strings

val strings: List<String>

Shared string table that all string properties refer to with indexes.