You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
const{ chromium, firefox, webkit }=require('playwright');(async()=>{constbrowser=awaitfirefox.launch()constpage=awaitbrowser.newPage()awaitpage.goto('https://www.cnblogs.com/cmt/p/14109447.html')//https://playwright.dev/docs/api/class-page#pagescreenshotoptionsawaitpage.screenshot({path: `example.png`,fullPage: true,quality: 20,// The quality of the image, between 0-100. Not applicable to png imagestype: 'png',})awaitbrowser.close()console.log('success')})()
Describe the bug
An exception occurs when the quality setting is greater than 0
The text was updated successfully, but these errors were encountered:
jhjade
changed the title
[BUG]
[BUG]Screenshot quality parameter setting error
Dec 23, 2020
Context:
Code Snippet
Describe the bug
An exception occurs when the quality setting is greater than 0
The text was updated successfully, but these errors were encountered: