Chromedriver - Selenium

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.

Chromedriver - Selenium

Postby tturner » Thu Aug 09, 2012 10:10 am

Hello

I am trying to use Selenium with my CEF app does anyone think it possible?

Selenium needs a part of chomium called chromedriver.exe.

Tom
tturner
Newbie
 
Posts: 9
Joined: Tue Jul 10, 2012 5:01 am

Re: Chromedriver - Selenium

Postby tturner » Thu Aug 09, 2012 10:21 am

Marshall

I see you tried to do this

http://comments.gmane.org/gmane.comp.web.chromium.devel/29208

They didn't sound like google where going to do your changes that are required that's a pain. Are you going to try and request it again?

Tom
tturner
Newbie
 
Posts: 9
Joined: Tue Jul 10, 2012 5:01 am

Re: Chromedriver - Selenium

Postby tturner » Thu Aug 09, 2012 10:25 am

I have just seen the your ticket Issue 549

Tom
tturner
Newbie
 
Posts: 9
Joined: Tue Jul 10, 2012 5:01 am

Re: Chromedriver - Selenium

Postby bpant » Mon Feb 04, 2013 11:14 am

I have been trying to do this too since I have my internal customers who would like to have their CEF apps driven with the existing Selenium wrapper code we already have.

I see that the cefclient application works fine with devtools as long as I specify the debugger port. I could then browse to localhost:port and use the devtools UI againt the CEF loaded session.

On the other side of the wire: the chromedriver devs indicated that with some changes to chromedriver locally to point to cef instead of chrome, we could potentially drive CEF with chromedriver that is being built with devtools support now. I have been chatting with the chromedriver folks at this thread about this:

https://groups.google.com/d/topic/chrom ... discussion

I am getting setup to build chromedriver locally, now that I can build CEF3 cefclient application locally that I am using as the target app for driving. Any thoughts on the feasibility of this approach? Is a CEF3 app basically already loaded with devtools support?

Thanks!
bpant
Techie
 
Posts: 14
Joined: Wed Jan 16, 2013 4:32 pm

Re: Chromedriver - Selenium

Postby magreenblatt » Mon Feb 04, 2013 12:35 pm

bpant wrote:Any thoughts on the feasibility of this approach? Is a CEF3 app basically already loaded with devtools support?

CEF3 supports devtools remote debugging but perhaps not any extensions to the devtools protocol. See http://code.google.com/p/chromiumembedd ... ail?id=549 for more information.
magreenblatt
Site Admin
 
Posts: 12382
Joined: Fri May 29, 2009 6:57 pm

Re: Chromedriver - Selenium

Postby drlazor » Wed May 01, 2013 3:27 pm

Has there been any luck making CEF work with Selenium? We have an app the uses CEF and would love to test it using Selenium. Currently we are using Sikuli and it is hard to automate with just UI elements.
drlazor
Newbie
 
Posts: 1
Joined: Wed May 01, 2013 2:51 pm

Re: Chromedriver - Selenium

Postby flydart » Mon Jul 07, 2014 10:07 am

Anybody had chromedriver to work with Selenium yet?
Please share if there's been any update on this. thanks a lot.
flydart
Newbie
 
Posts: 6
Joined: Tue Feb 18, 2014 11:41 am

Re: Chromedriver - Selenium

Postby smessica » Sun Oct 19, 2014 11:54 am

We are working with chromedriver and it is mostly working fine.
The main problem is that it is unable to dismiss dialogs like alerts and confirms.

There is an issue on it :https://code.google.com/p/chromiumembedded/issues/detail?id=1128
It seems that there is a patch to fix it, but I do not think it was reviewed yet.

Is there anyway to have it integrated?
This makes many tests that pass on standalone Chrome and IE to fail on the CEF based app.
smessica
Techie
 
Posts: 13
Joined: Tue Jul 02, 2013 3:09 pm

Re: Chromedriver - Selenium

Postby magreenblatt » Wed Feb 11, 2015 6:51 pm

I've added a short tutorial explaining how to automate CEF3 with ChromeDriver and Java: https://code.google.com/p/chromiumembed ... romeDriver
magreenblatt
Site Admin
 
Posts: 12382
Joined: Fri May 29, 2009 6:57 pm

Re: Chromedriver - Selenium

Postby smessica » Tue Apr 05, 2016 8:30 am

Thanks. But as far as I understand the issue of dismissing a js dialog still exists.
That is, if the site triggers an alert or prompt, the webdriver will try to dismiss it, but it will fail as CefJavaScriptDialogManager::HandleJavaScriptDialog and CefJavaScriptDialog::HandleAction are not implemented.

https://code.google.com/p/chromiumembed ... il?id=1128
smessica
Techie
 
Posts: 13
Joined: Tue Jul 02, 2013 3:09 pm


Return to Support Forum

Who is online

Users browsing this forum: No registered users and 38 guests