Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/sinco/deps.ts>Protocol.DOMSnapshot.CaptureSnapshotRequest

Browser Automation and Testing Tool for Deno, written in full TypeScript
Latest
interface Protocol.DOMSnapshot.CaptureSnapshotRequest
import { type Protocol } from "https://deno.land/x/sinco@v4.1.0/deps.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.