title: Unable to find the chromedriver executable. Ruby. Webdriver. Mac
body: <p>Please help!</p>
  
  <p>I am trying to run my testing script using Ruby and Selenium Web driver. </p>
  
  <pre><code>require "selenium-webdriver"
  
  driver = Selenium::WebDriver.for :chrome
  driver.navigate.to "google.com"
  driver.quit
  </code></pre>
  
  <p>but it gives me 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. (Selenium::WebDriver::Error::WebDriverError)
  </code></pre>
  
  <p>I have installed the chromedriver and unzipped it in the directory ~/webdrivers. And added the path to the chromedriver to the PATH. 
  Then I tried to move the chromedriver to ~/bin directory and have it in PATH. </p>
  
  <p>Nothing worked. I still get the error. </p>
  
  <p>Thank you.</p>