Skip to content

Instantly share code, notes, and snippets.

@lightcap
Created July 12, 2011 16:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lightcap/1078281 to your computer and use it in GitHub Desktop.
Save lightcap/1078281 to your computer and use it in GitHub Desktop.
Capybara.register_driver :selenium do |app|
require 'selenium-webdriver'
profile = Selenium::WebDriver::Firefox::Profile.from_name 'default'
profile["extensions.firebug.currentVersion"] = "999"
profile.add_extension(File.expand_path("../../firebug-1.7.1.xpi", __FILE__))
Capybara::Selenium::Driver.new(app, :browser => :firefox, :profile => profile)
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment