title: How to set Path to ChromeDriver for Cucumber running on Jenkins server in Ruby?
body: <p>I am using Cucumber with Capybara to run automation test in Jenkins server. Everything works fine with Firefox. However, I got problem with setup Google Chrome and ChromeDriver. I have installed Google Chrome and ChromeDriver (moved chromedriver to usr/bin/chromedriver) but when the test runs, it notifies an error: </p>
  
  <pre><code>"Unable to find the chromedriver executable. Please download the server from http://chromedriver.storage.googleapis.com/index.html and place it somewhere on your PATH. More info at https://github.com/SeleniumHQ/selenium/wiki/ChromeDriver." 
  </code></pre>
  
  <p>Below is my setup in env.rb for Chrome driver: </p>
  
  <pre><code>  Capybara.register_driver :chrome do |app|
      Capybara::Selenium::Driver.new(app, :browser =&gt; :chrome, :switches =&gt;
        %w[--ignore-certificate-errors --disable-popup-blocking])
    end
  </code></pre>
  
  <p>How can I set path to ChromeDriver when register_driver? Have anyone experienced this issue before?
  Many thanks.</p>