Skip to main content
Go to Latest
interface Protocol.Page.CaptureScreenshotRequest
import { type Protocol } from "https://deno.land/x/puppeteer@14.1.1/vendor/puppeteer-core/puppeteer/api-docs-entry.js";
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.