CEF and captureScreenshot

Do not post support requests, bug reports or feature requests. Discuss CEF here. Non-CEF related discussion goes in General Discussion!

CEF and captureScreenshot

Postby pmadr » Wed Apr 10, 2019 7:38 am

Hi,

I'd like to capture a screenshot like in headless Chrome. Is it possible in CEF?

Chrome uses HeadlessDevToolsClient? Can I use it?
Or it seems that it just sends message
SendMessage("Page.captureScreenshot"). If I send this message to the browser process in CEF, nothing happens.
pmadr
Newbie
 
Posts: 8
Joined: Tue Feb 13, 2018 8:04 am

Re: CEF and captureScreenshot

Postby magreenblatt » Wed Apr 10, 2019 11:04 am

A screenshot can be captured using Selenium, which operates using the DevTools remote debugging protocol. You can probably do it directly via the DevTools protocol as well, but you'll need to search for the details.
magreenblatt
Site Admin
 
Posts: 12382
Joined: Fri May 29, 2009 6:57 pm


Return to CEF Discussion

Who is online

Users browsing this forum: No registered users and 29 guests