chrome-devtools-kotlin / org.hildan.chrome.devtools.domains.domsnapshot / DOMSnapshotDomain / getSnapshot

getSnapshot

suspend fun getSnapshot(input: GetSnapshotRequest): GetSnapshotResponse
Deprecated: Deprecated in the Chrome DevTools protocol

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.

Official doc