Using selenium in CEF docked Panel

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.

Using selenium in CEF docked Panel

Postby graham42s » Tue Sep 14, 2021 2:45 am

Hi Guys,

What I have done is dock CEF on a panel in my winforms application, making my own custom browser, I was going to test out Selenium instead of using javascript, to see how it compares, my question is, can I control the chrome instance docked in my winform with Selenium or do I need to use the cefclient.exe as shown here: https://bitbucket.org/chromiumembedded/ ... romeDriver ?

I hope that makes sense :)

thanks guys

Graham
graham42s
Newbie
 
Posts: 4
Joined: Tue Sep 14, 2021 2:38 am

Re: Using selenium in CEF docked Panel

Postby magreenblatt » Tue Sep 14, 2021 3:37 am

It should work provided you pass the --remote-debugging-port command line flag and create the browser at application start. You won't be able to control anything outside of the browser with Selenium unless you implement custom JS bindings.
magreenblatt
Site Admin
 
Posts: 12383
Joined: Fri May 29, 2009 6:57 pm

Re: Using selenium in CEF docked Panel

Postby graham42s » Tue Sep 14, 2021 12:09 pm

Thank you Matt, i'll do that :)

regards

Graham
graham42s
Newbie
 
Posts: 4
Joined: Tue Sep 14, 2021 2:38 am


Return to Support Forum

Who is online

Users browsing this forum: reito, salvadordf and 51 guests