puppeteer/docs/api/puppeteer.page.screenshot_1.md
2023-02-23 13:31:23 +01:00

626 B

sidebar_label
Page.screenshot_1

Page.screenshot() method

Signature:

class Page {
  screenshot(
    options?: ScreenshotOptions & {
      encoding?: 'binary';
    }
  ): Promise<Buffer>;
}

Parameters

Parameter Type Description
options ScreenshotOptions & { encoding?: 'binary'; } (Optional)

Returns:

Promise<Buffer>