Please help!
I am trying to run my testing script using Ruby and Selenium Web driver.
require "selenium-webdriver"
driver = Selenium::WebDriver.for :chrome
driver.navigate.to "google.com"
driver.quit
but it gives me an error
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)
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.
Nothing worked. I still get the error.
Thank you.