Skip to content

Instantly share code, notes, and snippets.

@tourdedave
Created April 9, 2014 19:52
Show Gist options
  • Save tourdedave/10307924 to your computer and use it in GitHub Desktop.
Save tourdedave/10307924 to your computer and use it in GitHub Desktop.
# works
from selenium import webdriver as w
fp = w.FirefoxProfile()
fp.add_extension("/Users/tourdedave/Desktop/firebug-1.12.7.xpi")
d = w.Firefox(firefox_profile=fp)
d.get("http://the-internet.herokuapp.com")
#doesn't work
require 'selenium-webdriver'
profile = Selenium::WebDriver::Firefox::Profile.new
profile.add_extension '/Users/tourdedave/Desktop/firebug-1.12.7.xpi'
browser = Selenium::WebDriver.for :firefox, :profile => profile
browser.get "http://the-internet.herokuapp.com"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment