diff --git a/docs/api/puppeteer.page.screenshot.md b/docs/api/puppeteer.page.screenshot.md index 06a4df736f5..3ccd2d5cf37 100644 --- a/docs/api/puppeteer.page.screenshot.md +++ b/docs/api/puppeteer.page.screenshot.md @@ -36,7 +36,7 @@ Options object which might have the following properties: - `path` : The file path to save the image to. The screenshot type will be inferred from file extension. If `path` is a relative path, then it is resolved relative to [current working directory](https://nodejs.org/api/process.html#process_process_cwd). If no path is provided, the image won't be saved to the disk. -- `type` : Specify screenshot type, can be either `jpeg` or `png`. Defaults to 'png'. +- `type` : Specify screenshot type, can be `jpeg`, `png` or `webp`. Defaults to 'png'. - `quality` : The quality of the image, between 0-100. Not applicable to `png` images. diff --git a/packages/puppeteer-core/src/api/Page.ts b/packages/puppeteer-core/src/api/Page.ts index a48f574c770..2d4e9435c10 100644 --- a/packages/puppeteer-core/src/api/Page.ts +++ b/packages/puppeteer-core/src/api/Page.ts @@ -2248,7 +2248,7 @@ export class Page extends EventEmitter { * | current working directory}. * If no path is provided, the image won't be saved to the disk. * - * - `type` : Specify screenshot type, can be either `jpeg` or `png`. + * - `type` : Specify screenshot type, can be `jpeg`, `png` or `webp`. * Defaults to 'png'. * * - `quality` : The quality of the image, between 0-100. Not