Chrome-remote-interface: Page.captureScreenshot returning 'Unable to capture screenshot'

Created on 16 May 2017  路  4Comments  路  Source: cyrus-and/chrome-remote-interface

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 ?

duplicate external issue

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.

All 4 comments

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

Was this page helpful?
0 / 5 - 0 ratings

Related issues

zirill picture zirill  路  6Comments

westy92 picture westy92  路  7Comments

elsigh picture elsigh  路  3Comments

jimut picture jimut  路  7Comments

akleiner2 picture akleiner2  路  4Comments