ruby - Capybara: Unable to find xpath "/html" (Capybara::ElementNotFound) -
i have read lot of articles online , have yet find resolution problem. using selenium webdriver: capybara.default_driver = :selenium capybara.javascript_driver = :selenium class firefoxbrowser capybara.register_driver :firefox |app| client = selenium::webdriver::remote::http::default.new client.timeout = 280 capybara::selenium::driver.new(app, :browser => :firefox, :http_client => client) end end here gemfile: gem "rspec" gem "zentest" gem "cucumber" gem "selenium-webdriver" gem "capybara", "~> 2.1.0" gem "capybara-webkit", "~> 1.0.0" gem "simplecov", :require =>false, :group => :test gem "capybara-screenshot" gem "autotest", "~> 4.4.6" gem 'json', '~> 1.7.7' gem "rack-test", require: "rack/test" gem "poltergeist" i running ruby code us...