docs: add webp to captureScreenshot.format (#10295)

This commit is contained in:
Thiago Perrotta 2023-06-01 11:49:27 -04:00 committed by GitHub
parent 74becdb6a0
commit 27db1eb4f4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -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.

View File

@ -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