Skip to main content
Deno 2 is finally here 🎉️
Learn more
Go to Latest
interface default.Page.CaptureScreenshotRequest
import { type default } from "https://deno.land/x/puppeteer@14.1.1/vendor/puppeteer-core/puppeteer/api-docs-entry.d.ts";
const { CaptureScreenshotRequest } = default.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.