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

x/sinco/mod.ts>ScreenshotOptions

Browser Automation and Testing Tool for Deno, written in full TypeScript
Latest
interface ScreenshotOptions
Re-export
import { type ScreenshotOptions } from "https://deno.land/x/sinco@v4.1.0/mod.ts";

Properties

optional
fileName: string

Screenshot the given selector instead of the full page. Optional

optional
format: "jpeg" | "png"

The Screenshot format(and hence extension). Allowed values are "jpeg" and "png" - Optional

optional
quality: number

The image quality from 0 to 100, default 80. Applicable only if no format provided or format is "jpeg" - Optional