Page 1 of 1

PlayWright support

PostPosted: Thu Dec 15, 2022 7:24 am
by obalash
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.

Re: PlayWright support

PostPosted: Thu Dec 15, 2022 10:04 pm
by amaitland
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.

Re: PlayWright support

PostPosted: Tue Feb 07, 2023 1:12 pm
by sirchaddington
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.