PlayWright support

Having problems with building or using CEF's C/C++ APIs? This forum is here to help. Please do not post bug reports or feature requests here.

PlayWright support

Postby obalash » Thu Dec 15, 2022 7:24 am

Hi all,

We are looking to implementing PlayWright but it fails due to CEF not exposing Browser.* CPD domain. I see that CefDevToolsMessageObserver can intercept these requests but it doesnt look like there is a way for me to return a different result. Is there a way for me to achieve this behavior?

Thanks in advance,
Omer.
obalash
Techie
 
Posts: 16
Joined: Wed Oct 05, 2016 9:18 am

Re: PlayWright support

Postby amaitland » Thu Dec 15, 2022 10:04 pm

You'll likely need to look for an alternative to PlayWright. Have you considered Puppeteer?

There are instructions for Selenium/ChromeDriver available at https://bitbucket.org/chromiumembedded/cef/wiki/UsingChromeDriver.md.
Maintainer of the CefSharp project.
amaitland
Virtuoso
 
Posts: 1290
Joined: Wed Jan 14, 2015 2:35 am

Re: PlayWright support

Postby sirchaddington » Tue Feb 07, 2023 1:12 pm

I was able to use Puppeteer to connect to our CEF app over the Chrome DevTools Protocol (CDP) websocket. Then my node.js script could successfully wait for page elements to load and inject mouse/keyboard commands. Amaitland's link is also instructive.
sirchaddington
Newbie
 
Posts: 3
Joined: Tue Feb 07, 2023 11:53 am


Return to Support Forum

Who is online

Users browsing this forum: No registered users and 38 guests