captureSnapshot

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


suspend fun captureSnapshot(format: String? = null): Page.CaptureSnapshotReturn

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

Parameters

format

Format (defaults to mhtml).