How can I get watir-webdriver to run Firefox 4 with Firebug?

Any ideas? I tried setting webdriver.firefox.useExisting = true as described in the link below, hoping to reuse an existing window with firebug turned on, but there wasn’t such luck.

http://code.google.com/p/selenium/wiki/FirefoxDriver

+7
source share
3 answers

you need to create a specific profile in which Firebug is always on, and then start firefox with this profile in your configuration

+6
source

Quick response:

browser = Watir::Browser.new(:firefox, :profile => "default") 

But if you use tests, you probably shouldn't use the default profile.

+5
source
 profile = Selenium::WebDriver::Firefox::Profile.new profile.add_extension "/path/to/firebug.xpi" browser = Watir::Browser.new :firefox, :profile => profile 
+1
source

All Articles