Unable to find the chromedriver executable

7,008 views
Skip to first unread message

Reshma Shah

unread,
Jan 3, 2013, 3:43:09 AM1/3/13
to watir-...@googlegroups.com

I am facing an issue with chromeDriver, even after downloading chrome driver and placing its path in PATH variable i am getting the below error.

Selenium::WebDriver::Error::WebDriverError:

       Unable to find the chromedriver executable. Please download the server from http://code.google.com/p/chromedriver/downloads/list and place it somewhere on your PATH.

Please Help

Željko Filipin

unread,
Jan 3, 2013, 4:31:16 AM1/3/13
to watir
On Thu, Jan 3, 2013 at 9:43 AM, Reshma Shah <reshma...@gmail.com> wrote:
> I am facing an issue with chromeDriver, even after downloading chrome driver and placing its path in PATH variable i am getting the below error.

Where did you put the chromedriver? What is the value of your PATH environment variable?

This is what I get:

Mac (should be similar for Linux):

$ echo $PATH
/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/X11/bin:/usr/X11/bin

Windows:

>path
PATH=C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem

Željko
--
https://leanpub.com/watirbook

Reshma Shah

unread,
Jan 3, 2013, 5:22:11 AM1/3/13
to watir-...@googlegroups.com
My PATH variable contains,

C:\Ruby193\bin;C:\Program Files (x86)\RSA SecurID Token Common;C:\Windows\system
32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.
0\;C:\Program Files (x86)\QuickTime\QTSystem\;C:\Program Files\CREDANT\Shield v7
.1\;C:\chromedriver_win_23.0.1240.0;C:\Program Files (x86)\ssh communications se
curity\ssh Secure Shell;C:\Ruby193\bin;C:\IEDriverServer_x64_2.28.0;C:\chromedri
ver_win_23.0.1240.0\chromedriver;.

Željko Filipin

unread,
Jan 3, 2013, 5:24:10 AM1/3/13
to watir
On Thu, Jan 3, 2013 at 11:22 AM, Reshma Shah <reshma...@gmail.com> wrote:
My PATH variable contains,

And where did you put the chromedriver file?

Željko

Alex Shtayer

unread,
Feb 6, 2013, 10:53:36 AM2/6/13
to watir-...@googlegroups.com
Once more

Download and copy mentioned file for example in:
C:\Ruby193\bin

Pavak Shah

unread,
Mar 27, 2013, 5:05:05 PM3/27/13
to watir-...@googlegroups.com
It is working fine if I run my test case from the IDE but when I try to run the same file from Jenkins local, I am getting the same error. Is there any way I can solve this.

Please let me know.
Thanks.

Chuck van der Linden

unread,
Mar 27, 2013, 5:40:32 PM3/27/13
to watir-...@googlegroups.com
On Thursday, January 3, 2013 2:22:11 AM UTC-8, Reshma Shah wrote:
My PATH variable contains,

C:\Ruby193\bin;C:\Program Files (x86)\RSA SecurID Token Common;C:\Windows\system
32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.
0\;C:\Program Files (x86)\QuickTime\QTSystem\;C:\Program Files\CREDANT\Shield v7
.1\;C:\chromedriver_win_23.0.1240.0;C:\Program Files (x86)\ssh communications se
curity\ssh Secure Shell;C:\Ruby193\bin;C:\IEDriverServer_x64_2.28.0;C:\chromedri
ver_win_23.0.1240.0\chromedriver;.


Why the duplication? 

Chaitanya Joshi

unread,
Jun 5, 2014, 8:19:35 AM6/5/14
to watir-...@googlegroups.com
Hi,
I am using chromedriver version 2.9 
Selenium webdriver = 2.38.0
Capybara version = 2.1.0
Windows 7 64 bit 
Java : 1.7.0_51
and have added the following code in my env.rb file
Capybara.register_driver :selenium do |app|
  Capybara::Selenium::Driver.new(app, :browser => :chrome)
end
Also added the chromedriver in C:\Ruby193\bin\chromedriver.exe and have set the PATH variable as well. Still I am unable to launch the chrome browser and getting the following error 
unknown error: chrome failed to start
  (Driver info: chromedriver=2.9.248315,platform=Windows NT 6.1 SP1 x86_64) (Selenium::WebDriver::Error::Unknow
C:/Ruby193/lib/ruby/gems/1.9.1/gems/selenium-webdriver-2.38.0/lib/selenium/webdriver/remote/response.rb:51:in `
C:/Ruby193/lib/ruby/gems/1.9.1/gems/selenium-webdriver-2.38.0/lib/selenium/webdriver/remote/response.rb:15:in `
C:/Ruby193/lib/ruby/gems/1.9.1/gems/selenium-webdriver-2.38.0/lib/selenium/webdriver/remote/http/common.rb:59:i
C:/Ruby193/lib/ruby/gems/1.9.1/gems/selenium-webdriver-2.38.0/lib/selenium/webdriver/remote/http/common.rb:59:i
C:/Ruby193/lib/ruby/gems/1.9.1/gems/selenium-webdriver-2.38.0/lib/selenium/webdriver/remote/http/default.rb:66:
C:/Ruby193/lib/ruby/gems/1.9.1/gems/selenium-webdriver-2.38.0/lib/selenium/webdriver/remote/http/common.rb:40:i
C:/Ruby193/lib/ruby/gems/1.9.1/gems/selenium-webdriver-2.38.0/lib/selenium/webdriver/remote/bridge.rb:634:in `r
C:/Ruby193/lib/ruby/gems/1.9.1/gems/selenium-webdriver-2.38.0/lib/selenium/webdriver/remote/bridge.rb:99:in `cr
C:/Ruby193/lib/ruby/gems/1.9.1/gems/selenium-webdriver-2.38.0/lib/selenium/webdriver/remote/bridge.rb:68:in `in
C:/Ruby193/lib/ruby/gems/1.9.1/gems/selenium-webdriver-2.38.0/lib/selenium/webdriver/chrome/bridge.rb:29:in `in
C:/Ruby193/lib/ruby/gems/1.9.1/gems/selenium-webdriver-2.38.0/lib/selenium/webdriver/common/driver.rb:37:in `ne
C:/Ruby193/lib/ruby/gems/1.9.1/gems/selenium-webdriver-2.38.0/lib/selenium/webdriver/common/driver.rb:37:in `fo
C:/Ruby193/lib/ruby/gems/1.9.1/gems/selenium-webdriver-2.38.0/lib/selenium/webdriver.rb:67:in `for'
C:/Ruby193/lib/ruby/gems/1.9.1/gems/capybara-2.1.0/lib/capybara/selenium/driver.rb:11:in `browser'
C:/Ruby193/lib/ruby/gems/1.9.1/gems/capybara-2.1.0/lib/capybara/selenium/driver.rb:43:in `visit'
C:/Ruby193/lib/ruby/gems/1.9.1/gems/capybara-2.1.0/lib/capybara/session.rb:193:in `visit'
C:/Ruby193/lib/ruby/gems/1.9.1/gems/capybara-2.1.0/lib/capybara/dsl.rb:51:in `block (2 levels) in <module:DSL>'
D:/Cucumber/integration_tests/features/support/hooks.rb:19:in `Before'

Please help.


Željko Filipin

unread,
Jun 9, 2014, 4:45:22 AM6/9/14
to watir
On Thu, Jun 5, 2014 at 2:19 PM, Chaitanya Joshi <chaitut...@gmail.com> wrote:
unknown error: chrome failed to start

This is all I know about driving Chrome on Windows:


Let me know if you can not drive Chrome after following the instructions there.

Ragavan Ambighananthan

unread,
Jun 9, 2014, 6:46:57 AM6/9/14
to watir-...@googlegroups.com


On Thursday, June 5, 2014 1:19:35 PM UTC+1, Chaitanya Joshi wrote:
Hi,
I am using chromedriver version 2.9 
Selenium webdriver = 2.38.0
Capybara version = 2.1.0
Windows 7 64 bit 
Java : 1.7.0_51
and have added the following code in my env.rb file
Capybara.register_driver :selenium do |app|
  Capybara::Selenium::Driver.new(app, :browser => :chrome)
end
Also added the chromedriver in C:\Ruby193\bin\chromedriver.exe and have set the PATH variable as well. Still I am unable to launch the chrome browser and getting the following error 
unknown error: chrome failed to start
  (Driver info: chromedriver=2.9.248315,platform=Windows NT 6.1 SP1 x86_64) (Selenium::WebDriver::Error::Unknow

There is a mapping between chromedriver and chrome browser. For example, Chromedriver 2.9 can only handle chrome browser versions v31-34. So if your jenkins box has an older chrome browser, it wouldn't work.
Either upgrade your browser or downgrade the chromedriver.


C:/Ruby193/lib/ruby/gems/1.9.1/gems/selenium-webdriver-2.38.0/lib/selenium/webdriver/remote/response.rb:51:in `
C:/Ruby193/lib/ruby/gems/1.9.1/gems/selenium-webdriver-2.38.0/lib/selenium/webdriver/remote/response.rb:15:in `
C:/Ruby193/lib/ruby/gems/1.9.1/gems/selenium-webdriver-2.38.0/lib/selenium/webdriver/remote/http/common.rb:59:i
C:/Ruby193/lib/ruby/gems/1.9.1/gems/selenium-webdriver-2.38.0/lib/selenium/webdriver/remote/http/common.rb:59:i
C:/Ruby193/lib/ruby/gems/1.9.1/gems/selenium-webdriver-2.38.0/lib/selenium/webdriver/remote/http/default.rb:66:
C:/Ruby193/lib/ruby/gems/1.9.1/gems/selenium-webdriver-2.38.0/lib/selenium/webdriver/remote/http/common.rb:40:i
C:/Ruby193/lib/ruby/gems/1.9.1/gems/selenium-webdriver-2.38.0/lib/selenium/webdriver/remote/bridge.rb:634:in `r
C:/Ruby193/lib/ruby/gems/1.9.1/gems/selenium-webdriver-2.38.0/lib/selenium/webdriver/remote/bridge.rb:99:in `cr
C:/Ruby193/lib/ruby/gems/1.9.1/gems/selenium-webdriver-2.38.0/lib/selenium/webdriver/remote/bridge.rb:68:in `in
C:/Ruby193/lib/ruby/gems/1.9.1/gems/selenium-webdriver-2.38.0/lib/selenium/webdriver/chrome/bridge.rb:29:in `in
C:/Ruby193/lib/ruby/gems/1.9.1/gems/selenium-webdriver-2.38.0/lib/selenium/webdriver/common/driver.rb:37:in `ne
C:/Ruby193/lib/ruby/gems/1.9.1/gems/selenium-webdriver-2.38.0/lib/selenium/webdriver/common/driver.rb:37:in `fo
C:/Ruby193/lib/ruby/gems/1.9.1/gems/selenium-webdriver-2.38.0/lib/selenium/webdriver.rb:67:in `for'
C:/Ruby193/lib/ruby/gems/1.9.1/gems/capybara-2.1.0/lib/capybara/selenium/driver.rb:11:in `browser'
C:/Ruby193/lib/ruby/gems/1.9.1/gems/capybara-2.1.0/lib/capybara/selenium/driver.rb:43:in `visit'
C:/Ruby193/lib/ruby/gems/1.9.1/gems/capybara-2.1.0/lib/capybara/session.rb:193:in `visit'
C:/Ruby193/lib/ruby/gems/1.9.1/gems/capybara-2.1.0/lib/capybara/dsl.rb:51:in `block (2 levels) in <module:DSL>'
D:/Cucumber/integration_tests/features/support/hooks.rb:19:in `Before'

Please help.


Regards
Ragavan 

Super Kevy

unread,
Jun 9, 2014, 11:19:44 AM6/9/14
to watir-...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages