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
you need to create a specific profile in which Firebug is always on, and then start firefox with this profile in your configuration
Quick response:
browser = Watir::Browser.new(:firefox, :profile => "default")
But if you use tests, you probably shouldn't use the default profile.
profile = Selenium::WebDriver::Firefox::Profile.new profile.add_extension "/path/to/firebug.xpi" browser = Watir::Browser.new :firefox, :profile => profile