Hi,
With Canary (60.0.3100) running headless, on Windows 10, calling Page.captureScreenshot() returns a rejecting promise with : { error: { code: -32000, message: 'Unable to capture screenshot' } } .
Starting the same build but without the --headless flag and calling Page.captureScreenshot() returns undefined.
I was wondering if this was a known issue and if this is the right place to report it ?
Yeah, it seems a known issue.
This also happens on macOS and using Page.captureScreenshot({fromSurface: true}) seems to be a possible workaround for this issue, you can give it a try.
@cyrus-and thanks ! Like you said, using fromSurface flag makes the capture working !
Possible duplicate: #115
Most helpful comment
This also happens on macOS and using
Page.captureScreenshot({fromSurface: true})seems to be a possible workaround for this issue, you can give it a try.