私はcapybaraでseleniumを実行しようとしていて、firefox 50.1でubuntuでminitestを実行しようとしていますが、どのURLも訪れません。私はFirefoxが開いているが、空得るが、時々私はエラー1を取得:Railsセレン訪問コマンドfirefox
テストファイル:
require "test_helper"
feature "dashboard" do
scenario "test" , :js=>true do
Capybara.current_driver = :selenium
visit("http://www.google.com/")
visit root_url
end
end
gemfile:
group :test do
gem 'selenium-webdriver', '~> 2.53', '>= 2.53.4'
gem 'minitest-reporters'
gem "minitest-rails-capybara"
ERROR1:
test_0001_test ERROR (65.56s) Selenium::WebDriver::Error::WebDriverError:
Selenium::WebDriver::Error::WebDriverError: unable to obtain stable firefox connection in 60 seconds (127.0.0.1:7055) test/features/instance_dashboard_test.rb:81:in `block (2 levels) in '
私が行方不明ですいくつかを構成か何か?私はURLを訪れることができず、テストはうまくいきません
ちなみに、私はchromedriverをインストールしてパスに追加する必要がありました。私はこのリンクhttps://developers.supportbee.com/blog/setting-up-cucumber-to-run-with-Chrome-on-Linux/に従っていますが、あなたの設定を私のtest_helper.rb – Gaston