Created
April 29, 2011 20:54
-
-
Save swieton/949024 to your computer and use it in GitHub Desktop.
How to select your custom profile in your env.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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