Can extensions be installed in Watir's Firefox browser? Can extensions be installed in Watir's Firefox browser? selenium selenium

Can extensions be installed in Watir's Firefox browser?


Yes, you can do it. Let' assume you to want use Firebug extension..

First download the Firebug xpi file, then use the following code:

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