Skip to content

Instantly share code, notes, and snippets.

@jarib
Created September 21, 2010 20:49
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jarib/590509 to your computer and use it in GitHub Desktop.
Save jarib/590509 to your computer and use it in GitHub Desktop.
profile = Selenium::WebDriver::Firefox::Profile.new
profile.add_extension("/path/to/firebug.xpi")
driver = Selenium::WebDriver.for :firefox, :profile => profile
@eirc
Copy link

eirc commented Nov 4, 2011

@jarib
Copy link
Author

jarib commented Nov 4, 2011

@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"

@eirc
Copy link

eirc commented Nov 4, 2011

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