captureSnapshot
suspend fun captureSnapshot(args: Page.CaptureSnapshotParameter, mode: CommandMode = CommandMode.DEFAULT): 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.
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).