puppeteer/docs/api/puppeteer.page.screenshot_1.md

546 B

sidebar_label
Page.screenshot_1

Page.screenshot() method

Signature:

class Page {
  screenshot(options?: Readonly<ScreenshotOptions>): Promise<Buffer>;
}

Parameters

Parameter Type Description
options Readonly<ScreenshotOptions> (Optional)

Returns:

Promise<Buffer>