chrome-devtools-kotlin / org.hildan.chrome.devtools.domains.page / PageDomain / captureSnapshot

captureSnapshot

suspend fun captureSnapshot(input: CaptureSnapshotRequest): CaptureSnapshotResponse

Returns a snapshot of the page as a string. For MHTML format, the serialization includes iframes, shadow DOM, external resources, and element-inline styles.

Official doc