try putting @javascript and then run headless ... hope it works ...
You can try another solution. I removed this error using Google Chrome instead of Firefox and used the curb protocol. You must get the chrome driver first. I do not get this error without removing fakeweb (which I thought was the culprit)
yum install curl yum install curl-devel gem install curb cd /usr/bin/chromedriver chmod +x /usr/bin/chromedriver
Include this in your env.rb
require 'selenium/webdriver/remote/http/curb' Capybara.register_driver :selenium do |app|
Hope this helps ...
source share