---
title: "How do I get watir-webdriver to start Firefox 4 with Firebug?"
author: "lilingjay"
date: "2012-04-01T14:45:22Z"
tags: []
categories: ["开源软件"]
slug: "how-do-i-get-watir-webdriver-to-start-firefox-4-with-firebug"
draft: false
lastmod: "2012-04-01T14:45:22Z"
id: 1472027
url: "https://lilingjay.iteye.com/blog/1472027"
---

原文链接：[http://stackoverflow.com/questions/6065092/how-do-i-get-watir-webdriver-to-start-firefox-4-with-firebug](http://stackoverflow.com/questions/6065092/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](http://code.google.com/p/selenium/wiki/FirefoxDriver)

 

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

this profile in your configuration

ff=Watir::Browser.new(:firefox, :profile=&gt;some\_profile

 

 

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.

)