Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

unable to connect to chromedriver http://127.0.0.1:9515 (Selenium::WebDriver::Error::WebDriverError)

I have installed chrome-driver from http://chromedriver.storage.googleapis.com/index.html and I have installed both Google-chrome browser also. I want to Run cucumber test cases using chrome browser instead of Firefox browser but I am stuck with this error. Any help appreciated. Thanks

like image 247
Devendra Bobde Avatar asked May 27 '14 12:05

Devendra Bobde


2 Answers

I had this issue because of path override with rbenv shim. It's worth checking where which chromedriver points too.

For me the fix was: gem uninstall chromedriver-helper and brew install chromedriver

like image 126
user3793800 Avatar answered Sep 20 '22 17:09

user3793800


If you using rbenv on linux machine then

copy 'chromedriver' to current using ruby versions like below -

cp chromedriver $HOME/.rbenv/versions/2.2.0/bin

Example: cp chromedriver home/abc_user/.rbenv/versions/2.2.0/bin

and then set the permissions like -

chmod +x home/abc_user/.rbenv/versions/2.2.0/bin/chromedriver

like image 43
Sartaj Singh Sisodiya Avatar answered Sep 22 '22 17:09

Sartaj Singh Sisodiya