Skip to main content
The Deno 2 Release Candidate is here
Learn more
Go to Latest
method Page.prototype.screenshot
import { Page } from "https://deno.land/x/puppeteer@14.1.1/vendor/puppeteer-core/puppeteer/common/Page.d.ts";

Returns

Promise<Uint8Array | string>

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