Page 1 of 1

Automate CEF web page in child window

PostPosted: Sun Nov 01, 2020 2:51 pm
by Prakash03
Hi,
Am new to CEF automation. Recently i trying to automate CEF enabled web pages in child window.
Need to use winium driver to automate window based part and selenium for web based .
Currntly, i dont have the url for that cef embedded web page. May be some html pages has been embedded using cef.
Using winium i have launched the application and navigate to cef enabled web page.
In left panel i have menu section and right section has cef page. Now i need to automate that page using selenium.
Instead of passing url, i passed local host ip.and remote debugging port. It launches chrome browser.
Here i should not launch the browser.

I have referred many sites, how to automate using both selenium and winium. I didnt found proper solution.
https://bitbucket.org/chromiumembedded/ ... romeDriver
https://stackoverflow.com/questions/578 ... ing-winium
Can some one help me here.
How to link winium and selenium driver or How to pass the winium instance to selenium driver(CEF in right section of screen).

Thanks in advance.

Re: Automate CEF web page in child window

PostPosted: Sun Nov 01, 2020 4:45 pm
by magreenblatt
Chromium-based apps can be controlled using ChromeDriver. See https://bitbucket.org/chromiumembedded/ ... eDriver.md

If you wish to control native portions of your app with the same ChromeDriver connection then you will need to add JavaScript bindings. See https://bitbucket.org/chromiumembedded/ ... gration.md