diff --git a/src/common/Page.ts b/src/common/Page.ts index d1ca8bb931a09..21f85c7d06235 100644 --- a/src/common/Page.ts +++ b/src/common/Page.ts @@ -2610,7 +2610,7 @@ export class Page extends EventEmitter { if (options.quality) { assert( - screenshotType === 'jpeg', + screenshotType === 'jpeg' || screenshotType === 'webp', 'options.quality is unsupported for the ' + screenshotType + ' screenshots'