Skip to main content
Deno 2 is finally here 🎉️
Learn more
Go to Latest
interface Protocol.DOMSnapshot.CaptureSnapshotRequest
import { type Protocol } from "https://deno.land/x/puppeteer@14.1.1/vendor/puppeteer-core/puppeteer/api-docs-entry.d.ts";
const { CaptureSnapshotRequest } = Protocol.DOMSnapshot;

Properties

computedStyles: string[]

Whitelist of computed styles to return.

optional
includePaintOrder: boolean

Whether to include layout object paint orders into the snapshot.

optional
includeDOMRects: boolean

Whether to include DOM rectangles (offsetRects, clientRects, scrollRects) into the snapshot

optional
includeBlendedBackgroundColors: boolean

Whether to include blended background colors in the snapshot (default: false). Blended background color is achieved by blending background colors of all elements that overlap with the current element.

optional
includeTextColorOpacities: boolean

Whether to include text color opacity in the snapshot (default: false). An element might have the opacity property set that affects the text color of the element. The final text color opacity is computed based on the opacity of all overlapping elements.