Skip to content

Commit

Permalink
WebDriver BiDi: "browsingContext.captureScreenshot" accepts quality f…
Browse files Browse the repository at this point in the history
…rom 0 to 1 (#34097)
  • Loading branch information
whimboo authored Dec 19, 2024
1 parent 7d3a188 commit edd7897
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/playwright-core/src/server/bidi/bidiPage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -399,7 +399,7 @@ export class BidiPage implements PageDelegate {
context: this._session.sessionId,
format: {
type: `image/${format === 'png' ? 'png' : 'jpeg'}`,
quality: quality || 80,
quality: quality ? quality / 100 : 0.8,
},
origin: documentRect ? 'document' : 'viewport',
clip: {
Expand Down

0 comments on commit edd7897

Please sign in to comment.