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

x/sinco/deps.ts>Protocol.HeadlessExperimental.ScreenshotParams

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

Encoding options for a screenshot.

Properties

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

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

optional
quality: integer

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