Skip to content

Instantly share code, notes, and snippets.

@swieton
Created April 29, 2011 20:54
Show Gist options
  • Save swieton/949024 to your computer and use it in GitHub Desktop.
Save swieton/949024 to your computer and use it in GitHub Desktop.
How to select your custom profile in your env.rb
Capybara.register_driver :firefox_custom do |app|
require 'selenium/webdriver'
profile_path = "/path/to/prototype_profile"
profile = Selenium::WebDriver::Firefox::Profile.new(profile_path)
driver = Capybara::Driver::Selenium.new(app, :profile => profile)
driver
end
# And set the default driver to our new one:
Capybara.default_driver = :firefox_custom
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment