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

本小妞迷上赌 提交于 2019-12-03 15:18:16

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

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.

profile = Selenium::WebDriver::Firefox::Profile.new
profile.add_extension "/path/to/firebug.xpi"
browser = Watir::Browser.new :firefox, :profile => profile
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!