Created
September 21, 2010 20:49
-
-
Save jarib/590509 to your computer and use it in GitHub Desktop.
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
profile = Selenium::WebDriver::Firefox::Profile.new | |
profile.add_extension("/path/to/firebug.xpi") | |
driver = Selenium::WebDriver.for :firefox, :profile => profile |
Great info here: http://waltersmith.us/articles/using-firebug-with-capybara
@eirc: That post has an "ignore this post" update at the top. The info about patching the XPI is pretty bad, since the same thing can be done by simply setting a preference:
profile['extensions.firebug.currentVersion'] = "9.99"
Warning blindness has surely set in...!
Sorry for the miss-information and thanks for the info.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Adding your comment from the Pivotal Blog here as reference material:
There's two ways to do what you want using WebDriver APIs:
http://gist.github.com/590509
Selenium::WebDriver.for :firefox, :profile => "capybara"
Hooking this into Capybara should be simple using the new API to configure drivers:
http://github.com/jnicklas/capybara/commit/d536eea864a6ed7e9e0032ec9d61edaadba6a375