pl.wendigo.chrome.domain.domsnapshot / DOMSnapshotDomain

DOMSnapshotDomain

class DOMSnapshotDomain (source)

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

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<ProtocolEvent>

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.