Skip to content

Commit

Permalink
Merge pull request #5584 from Faldrian/cucumber-specify-fx-version
Browse files Browse the repository at this point in the history
Added environment-variable to specify Firefox version for testing
  • Loading branch information
jhass committed Jan 24, 2015
2 parents f8fdbed + 913d982 commit d48b787
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions features/support/env.rb
Expand Up @@ -15,6 +15,12 @@
# Ensure we know the appservers port
Capybara.server_port = 9887

# Use a version of Firefox defined by environment variable, if set
Capybara.register_driver :selenium do |app|
require 'selenium/webdriver'
Selenium::WebDriver::Firefox::Binary.path = ENV['FIREFOX_BINARY_PATH'] || Selenium::WebDriver::Firefox::Binary.path
Capybara::Selenium::Driver.new(app, :browser => :firefox)
end

# Capybara defaults to XPath selectors rather than Webrat's default of CSS3. In
# order to ease the transition to Capybara we set the default here. If you'd
Expand Down

0 comments on commit d48b787

Please sign in to comment.