I am trying to set up Selenium for my Rails project and I want to use chrome as my browser. It currently works as open up firefox only. I have Capybara.register_driver :selenium_chrome do |app|
Capybara::Selenium::Driver.new(app, :browser => :chrome)
end
in my spec_helper.rb
but it still opens firefox when I run specs. What am I missing?
質問する
791 次
1 に答える
0
修正しました。Capybara.register_driver :selenium do |app|
の代わり に使用する必要がありCapybara.register_driver :selenium_chrome do |app|
ました。
于 2012-08-30T20:25:29.443 に答える