Richard Finegan
Richard Finegan

Reputation: 1955

How do I get watir-webdriver to start Firefox 4 with Firebug?

Any ideas? I've tried setting webdriver.firefox.useExisting=true as described in the link below hoping to reuse an existing window with firebug enabled, but no such luck.

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

Upvotes: 7

Views: 1884

Answers (3)

Stepan
Stepan

Reputation: 342

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

Upvotes: 1

juan2raid
juan2raid

Reputation: 1644

The quick answer is:

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

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

Upvotes: 5

Grooveek
Grooveek

Reputation: 10094

you have to create a specific profile where Firebug is always enabled, then launch firefox with this profile in your configuration

Upvotes: 6

Related Questions