Skip to main content
Deno 2 is finally here 🎉️
Learn more
Latest
interface default.Page.CaptureScreenshotRequest
import { type default } from "https://deno.land/x/pptr@1.2.0/vendor/devtools-protocol/protocol.d.ts";
const { CaptureScreenshotRequest } = default.Page;

Properties

optional
format: "jpeg" | "png"

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.