What is the use of ChromeDriver?

2,055 views
Skip to first unread message

Justin Drake

unread,
Jan 17, 2012, 8:03:34 AM1/17/12
to webd...@googlegroups.com
I have been using both ChromeDriver and selenium-server-standalone for my Google Chrome tests. I have not seen any difference between the two.

What does ChromeDriver add over selenium-server-standalone for Google Chrome tests (or other browsers?!) ?

Thanks,
Justin

Krishnan Mahadevan

unread,
Jan 17, 2012, 8:07:08 AM1/17/12
to webd...@googlegroups.com
AFAIK,

ChromeDriver acts as the intermediate handler that enables selenium libraries to talk to the actual google chrome browser.
It is applicable only to Chrome browser.

Thanks & Regards
Krishnan Mahadevan

"All the desirable things in life are either illegal, expensive, fattening or in love with someone else!"


--
You received this message because you are subscribed to the Google Groups "webdriver" group.
To post to this group, send email to webd...@googlegroups.com.
To unsubscribe from this group, send email to webdriver+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/webdriver?hl=en.

Justin Drake

unread,
Jan 17, 2012, 8:14:32 AM1/17/12
to webd...@googlegroups.com
Thanks Krishnan.

The thing I don't understand is why my Google Chrome tests work without ChromeDriver (using only selenium-server-standalone).

Justin

Krishnan Mahadevan

unread,
Jan 17, 2012, 8:20:59 AM1/17/12
to webd...@googlegroups.com
Are you working with chrome browser as below ?

Selenium selenium = new DefaultSelenium("localhost",4444,"*chrome","http://www.google.com");

If yes, then you are technically speaking working on the "legacy selenium rc mode". This doesnt need a chromedriver binary.

However if you are working with Chrome browser as below:

ChromeDriver driver = new ChromeDriver();

Then the chromedriver binary comes into play, because this is the Selenium2 approach.

Hope that clarifies.

Thanks & Regards
Krishnan Mahadevan

"All the desirable things in life are either illegal, expensive, fattening or in love with someone else!"


Justin Drake

unread,
Jan 17, 2012, 9:13:07 AM1/17/12
to webd...@googlegroups.com
I'm using the second approach, and it works without ChromeDriver. Bizarre.

Ross Patterson

unread,
Jan 17, 2012, 9:21:35 AM1/17/12
to webd...@googlegroups.com

What’s bizarre isn’t the result, it’s that Google decided to use “Chrome” as their browser’s name after the Mozilla Foundation used it for many years in Firefox.  Which results in :

 

·         In the Selenium RC API, “*chrome” means the Firefox browser.  So “Selenium selenium = new DefaultSelenium("localhost",4444,"*chrome","http://www.google.com");” launches Firefox.   To launch Google’s Chrome browser, use “*googlechrome” instead.

·         In the WebDriver API, the ChromeDriver launches Google’s Chrome browser.  Firefox is launched by the FirefoxDriver.

 

Ross

Justin Drake

unread,
Jan 17, 2012, 9:35:30 AM1/17/12
to webd...@googlegroups.com
Hi Ross,

I'm using the WebDriver API, *not* the Selenium RC API.

--

Daniel Wagner-Hall

unread,
Jan 17, 2012, 10:06:56 AM1/17/12
to webd...@googlegroups.com
As long as you have chromedriver somewhere on your PATH,
selenium-server-standalone should just look it up and start it for
you, I believe. You could step through debugging the code, or look to
see whether there is a chromedriver process running during your tests,
to see what's happening.
Reply all
Reply to author
Forward
0 new messages