Skip to content

Instantly share code, notes, and snippets.

@rcdexta
Created December 4, 2014 10:43
Show Gist options
  • Save rcdexta/e5d6f93955715ab09ddf to your computer and use it in GitHub Desktop.
Save rcdexta/e5d6f93955715ab09ddf to your computer and use it in GitHub Desktop.
Capybara.default_driver = :selenium
it_profile = Selenium::WebDriver::Firefox::Profile.new
it_profile['intl.accept_languages'] = 'it' # Italian Locale
Capybara.register_driver :selenium do |app|
Capybara::Selenium::Driver.new(app, :browser => :firefox,
:profile => it_profile)
end
Capybara.current_session.driver.browser.capabilities.firefox_profile = it_profile
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment