I am running my rspec test with selenium webdriver. The setup looks the following way:
require 'capybara/dsl'
Capybara.app = Rack::File.new File.expand_path('../fixtures', __FILE__)
require 'selenium-webdriver'
Capybara.register_driver :firefox do |app|
options = ::Selenium::WebDriver::Firefox::Options.new
options.args << '--headless' if travis?
Capybara::Selenium::Driver.new(app, browser: :firefox, options: options)
end
Capybara.default_driver = :firefox
When I run rspec
the tests fail with
Failure/Error: visit '/select2-v3/index.html'
Selenium::WebDriver::Error::UnknownError:
newSession
# WebDriverError@chrome://marionette/content/error.js:178:5
# UnknownCommandError@chrome://marionette/content/error.js:472:5
# despatch@chrome://marionette/content/server.js:290:13
# execute@chrome://marionette/content/server.js:271:11
# onPacket/<@chrome://marionette/content/server.js:246:15
# onPacket@chrome://marionette/content/server.js:245:8
# _onJSONObjectReady/<@chrome://marionette/content/transport.js:490:9
# ./spec/select2_spec.rb:6:in `block (2 levels) in <top (required)>'
Googling around didn't give me any results.
Do you have any ideas how to fix it?
Update: I am using firefox v63.0
You need to upgrade to the latest version of geckodriver
(v0.23.0) to work with Firefox 63.
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