Skip to content

Instantly share code, notes, and snippets.

@rickenharp
Created September 24, 2012 08:05
Show Gist options
  • Save rickenharp/3774865 to your computer and use it in GitHub Desktop.
Save rickenharp/3774865 to your computer and use it in GitHub Desktop.
Setting the locale in capybara with selenium-webdriver
Capybara.register_driver :selenium_de do |app|
require 'selenium/webdriver'
profile = Selenium::WebDriver::Firefox::Profile.new
profile['intl.accept_languages'] = "de"
Capybara::Selenium::Driver.new(app, :profile => profile)
end
Capybara.javascript_driver = :selenium_de
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment