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

3

7

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

Merciful answered 19/5, 2011 at 21:29 Comment(1)
Good question I was just wondering how you did that myself.Seclusion
P
6

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

Pertinacity answered 19/5, 2011 at 21:44 Comment(0)
A
5

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.

Ashly answered 19/5, 2011 at 22:52 Comment(1)
The longer answer is on the wiki page for the WebDriver Ruby bindings: code.google.com/p/selenium/wiki/…Carboy
A
1
profile = Selenium::WebDriver::Firefox::Profile.new
profile.add_extension "/path/to/firebug.xpi"
browser = Watir::Browser.new :firefox, :profile => profile
Allheal answered 2/10, 2014 at 14:31 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.