class DOMSnapshotDomain
(source)
This domain facilitates obtaining document snapshots with DOM, layout, and style information.
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. |
|
fun disable(): Single<ResponseFrame>
Disables DOM snapshot agent for the given page. |
|
fun enable(): Single<ResponseFrame>
Enables DOM snapshot agent for the given page. |
|
fun events(): Flowable<ProtocolEvent>
Returns flowable capturing all DOMSnapshot domains events. |
|
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. |