I use capybara & selenium test my rails project. when i execute the test script,it's has errors likes this
Selenium::WebDriver::Error::WebDriverError: Could not find Firefox binary (os=macosx). Make sure Firefox is installed or set the path manually with Selenium::WebDriver::Firefox::Binary.path=
I google how to use Google Chrome as the testing browser instead of Firefox
but it occurs other errors likes
Selenium::WebDriver::Error::WebDriverError: unable to connect to chromedriver http://127.0.0.1:9515
The answer is No. You have to have the chrome application inside your computer.
I had the exact same issue. What worked for me was using the "webdrivers" gem. Part of my gemfile looks like this:
group :development, :test do gem 'rspec-rails' gem 'capybara' gem 'webdrivers' end
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With