Cucumber; Selenium WebDriver - how to use Google Chrome as the testing browser instead of Firefox

前端 未结 6 2055
死守一世寂寞
死守一世寂寞 2020-12-23 15:02

For a Cucumber scenario on my Rails 3.1 app, I used the @javascript tag, so Selenium is activated. I get the following error:

Could not find Firefox binary (         


        
6条回答
  •  甜味超标
    2020-12-23 15:44

    If you're using capybara try this

    Capybara.register_driver :selenium do |app|
      Capybara::Selenium::Driver.new(app, :browser => :chrome)
    end

    See capybara docs for additional details (especially take a look into Configuring and adding drivers section)

提交回复
热议问题