Watirweb chrome - unable to find chromedriver executable

I have kept files from
(http://code.google.com/p/chromium/downloads/list) in Browser_drivers
directory inside present directory.

here is the code:

browser_drivers = "#{Dir.pwd}/Browser_drivers"
browser_drivers.gsub!("/", "\\") if

profile = Selenium::WebDriver::Chrome::Profile.new
profile[‘download.prompt_for_download’] = false
profile[‘download.default_directory’] = browser_drivers
browser=Watir::Browser.new :chrome, :profile => profile # here I
am getting the error

the error is:
"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. More info at

I am now in ubuntu, what changes I need for windows?

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs