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

x/sinco/deps.ts>Protocol.Page.CaptureScreenshotRequest

Browser Automation and Testing Tool for Deno, written in full TypeScript
Latest
interface Protocol.Page.CaptureScreenshotRequest
import { type Protocol } from "https://deno.land/x/sinco@v4.1.0/deps.ts";
const { CaptureScreenshotRequest } = Protocol.Page;

Properties

optional
format: ("jpeg" | "png" | "webp")

Image compression format (defaults to png). (CaptureScreenshotRequestFormat enum)

optional
quality: integer

Compression quality from range [0..100] (jpeg only).

optional
clip: Viewport

Capture the screenshot of a given region only.

optional
fromSurface: boolean

Capture the screenshot from the surface, rather than the view. Defaults to true.

optional
captureBeyondViewport: boolean

Capture the screenshot beyond the viewport. Defaults to false.