Latest
method Page.prototype.screenshot
import { Page } from "https://dotland.deno.dev/x/puppeteer@16.2.0/vendor/puppeteer-core/puppeteer/types.d.ts";

Parameters

optional
options: ScreenshotOptions

Returns

Promise<Buffer | string>

Promise which resolves to buffer or a base64 string (depending on the value of encoding) with captured screenshot.