How do I run Firebug within Selenium WebDriver (Selenium 2)?
问题 What's the best way to activate Firebug in Firefox when running Selenium 2? Edit: Ok, I realize "best" is open to interpretation, but the profile-based solution really used to be a pain with selenium 1.0. So any alternative is considered better until proved worse ;) 回答1: You can create your profile in code and dynamically add required add-ons. Let's assume that you saved Firebug XPI into the C:\FF_Profile folder as firebug.xpi (go to Firebug download page, right-click on the "Add To Firefox"