pl.wendigo.chrome.api.domsnapshot / CaptureSnapshotRequest

CaptureSnapshotRequest

data class CaptureSnapshotRequest (source)

Represents request frame that can be used with 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>

CaptureSnapshotRequest(computedStyles: List<String>, includePaintOrder: Boolean? = null, includeDOMRects: Boolean? = null)

Represents request frame that can be used with DOMSnapshot#captureSnapshot operation call.

Properties

computedStyles

val computedStyles: List<String>

Whitelist of computed styles to return.

includeDOMRects

val includeDOMRects: Boolean?

Whether to include DOM rectangles (offsetRects, clientRects, scrollRects) into the snapshot

includePaintOrder

val includePaintOrder: Boolean?

Whether to include layout object paint orders into the snapshot.