Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Error: unable to connect to chromedriver http://127.0.0.1:9515 (Selenium::WebDriver::Error::WebDriverError) #44
require "spec_helper" RSpec.describe "the signin process", :type => :feature do it "signs me in" do visit '/' expect(page).to have_content 'About Zeit.io' end end
When I ran
I am on macos sierra.
spec.add_development_dependency "bundler", "~> 1.14" spec.add_development_dependency "rake", "~> 10.0" spec.add_development_dependency "rspec", "~> 3.0" spec.add_development_dependency "capybara" spec.add_development_dependency "selenium-webdriver" spec.add_development_dependency 'chromedriver-helper', '~> 1.0'
I also have this issue having recently upgraded to Sierra.
Using 1.1 of chromedriver-helper.
For me the browser never launches.
UPDATE: I have narrowed this down to being a proxy issue. Will look into this more on Monday...
Okay, so I'm getting this after uninstalling this too... what has this done to my machine, help?
EDIT: It stopped it running in brew services. Figured it out, wondering why it did that though.
EDIT: Um I'm still having the issue. This isn't cool...
EDIT: It makes no sense to me that somehow the following happened:
In case this helps other folks using rbenv who have experienced this issue after uninstalling... I couldn't seem to get rid of this rbenv shim:
❯ which chromedriver /Users/xxx/.rbenv/shims/chromedriver
rbenv/rbenv#388 helped me track down the issue. I realized that I still had these chromedriver executables on disk:
❯ ls ~/.rbenv/versions/*/bin/* | grep chromedriver /Users/xxx/.rbenv/versions/2.3.1/bin/chromedriver* /Users/xxx/.rbenv/versions/2.3.1/bin/chromedriver-update*
After removing them, an
❯ rm ~/.rbenv/versions/2.3.1/bin/chromedriver ❯ rm ~/.rbenv/versions/2.3.1/bin/chromedriver-update ❯ rbenv rehash ❯ which chromedriver chromedriver not found
Thanks for that tip!
This can also be a problem if you frequently switch between projects using
Not sure how this could be properly solved, but @chrislopresto tip is really useful anyways.
@StMacLennan that will probably solve the problem.
Somehow this gem is downloading a very old
Same thing happens when I used
I tried almost everything and nothing helped. So I just tried "old fashioned" directly downloading binary version.
I could see that chromedriver latest is indeed 2.38. I downloaded, unzipped, moved to
Full solution (Mac):
curl http://chromedriver.storage.googleapis.com/2.38/chromedriver_mac64.zip -o chromedriver_mac64.zip unzip chromedriver_mac64.zip mv chromedriver /usr/local/bin chmod +x /usr/local/bin/chromedriver rm chromedriver_mac64.zip
@LucasArruda the problem you're seeing with downloading old versions of chromedriver was fixed in v0.0.8 in January 2015. Please update your gem.
In the future, you may want to consider opening a new issue for bugs that you're seeing, instead of commenting on closed tickets regarding unrelated issues. That way you can receive more direct help when you need it, and not resort to workarounds like the one you've posted above.
I'm going to go ahead and lock this ticket from further commenting.