Glen
Glen

Reputation: 144

Selenium::WebDriver::Error::WebDriverError: unable to connect to chromedriver

In irb I do the following:

require "watir"
b = Watir::Browser.new :chrome

I then get the following error:

Selenium::WebDriver::Error::WebDriverError: unable to connect to chromedriver 127.0.0.1:9515

OSX 10.12.3 Ruby 2.3.1 Chrome Driver latest version Watir 6.2.0

Upvotes: 5

Views: 14172

Answers (2)

Katta Naveen Kumar
Katta Naveen Kumar

Reputation: 59

Solved in a minute!

  • Download geckodriver from here
  • Extract the tar.gz file into your application root folder
  • Give this command in terminal from application root path export PATH=$PATH:/path/to/application

Upvotes: 0

Amin Shamim
Amin Shamim

Reputation: 111

gem install webdrivers

Worked for me.

Upvotes: 10

Related Questions