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

x/fresh/tests/deps.ts>Page#screenshot

The next-gen web framework.
Extremely Popular
Go to Latest
method Page.prototype.screenshot
Re-export
import { Page } from "https://deno.land/x/fresh@1.6.3/tests/deps.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.