Puppeteer: BiDi does not support 'scale' in 'clip'.
The BiDi screenshot clip scale is not 1.
The BiDi screenshot clip scale is not 1.
Error message
BiDi does not support 'scale' in 'clip'.
How this error happens
BiDi’s screenshot clip accepts a scale of 1. Requesting a different clip scale asks for an unsupported transformation.
Use a page named page from a WebDriver BiDi browser.
await page.screenshot({
clip: {
x: 0,
y: 0,
width: 640,
height: 480,
scale: 2,
},
});
How to fix
Use the supported scale of 1, or omit scale. Use a different capture workflow if a scaled image is a requirement.
await page.screenshot({
clip: {
x: 0,
y: 0,
width: 640,
height: 480,
},
});
Things to keep in mind
A larger viewport or a different device scale factor is not automatically equivalent to scaling a clip. Check the resulting image dimensions.