pl.wendigo.chrome.api.domsnapshot / DOMSnapshotOperations

DOMSnapshotOperations

class DOMSnapshotOperations (source)

This domain facilitates obtaining document snapshots with DOM, layout, and style information.

This API is marked as experimental in protocol definition and can change in the future.

Link
Protocol DOMSnapshot domain documentation.

Functions

captureSnapshot

fun captureSnapshot(input: CaptureSnapshotRequest): Single<CaptureSnapshotResponse>

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.

disable

fun disable(): Single<ResponseFrame>

Disables DOM snapshot agent for the given page.

enable

fun enable(): Single<ResponseFrame>

Enables DOM snapshot agent for the given page.

events

fun events(): Flowable<Event>

Returns flowable capturing all DOMSnapshot domains events.

getSnapshot

fun getSnapshot(input: GetSnapshotRequest): Single<GetSnapshotResponse>

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.