I'm using Cucumber with Capybara and Selenium-Webdriver. Until now, I've always used Chrome but the project has requested some cross browser tests for Firefox too.
When running in Firefox, I just get a blank window and webpage doesn't appear.
This is the error I get:
Selenium::WebDriver::Error::WebDriverError: no sessionId in returned payload
My setup is:
Firefox V54
Cucumber 2.4
Selenium-webdriver 3.4.0
geckodriver 0.17
My firefox profile:
if ENV['firefox']
Capybara.default_driver = :selenium
Capybara.register_driver :selenium do |app|
options = {
:js_errors => false,
}
Capybara::Selenium::Driver.new(app, :browser => :firefox)
end
Any ideas why I only get a blank window when Firefox starts up in the test?