Created
July 6, 2011 11:20
-
-
Save estahn/1067020 to your computer and use it in GitHub Desktop.
Run Cucumber with Selenium RC and a custom Firefox profile
This file contains hidden or 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
if ENV.key?('SELENIUM_REMOTE') | |
Capybara.register_driver :selenium do |app| | |
require 'selenium-webdriver' | |
profile = Selenium::WebDriver::Firefox::Profile.from_name 'default' | |
capabilities = Selenium::WebDriver::Remote::Capabilities.firefox(:firefox_profile => profile) | |
Capybara::Selenium::Driver.new(app, { :browser => :remote, :desired_capabilities => capabilities }) | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment