Pages

Friday 9 March 2012

How can I start Firefox with add-ons installed?

Create a Firefox profile and add required add-ons. 


Take ‘Firebug’ as an example, save the Firebug XPI into the C:FF_addons folder as firebug.xpi (Download XPI file from Firebug download page, right-click on the “Download Now” and save as C:FF_addonsfirebug.xpi).


Then create a Firefox profile and add Firebug add-on while instantiating FirefoxDriver as below:


   String firebugFilePath = "C:\FF_addons\firebug.xpi";
FirefoxProfile profile = new FirefoxProfile();
profile.addExtension(new File(firebugFilePath));
// Add more FF addons if required
WebDriver driver = new FirefoxDriver(profile);

5 comments:

  1. Firebug works great, but I have problems installing SeleniumIDE addon with webdriver.

    Caused by: java.io.FileNotFoundException: C:\Users\ILOCME~1\AppData\Local\Temp\unzip6111275095886595414stream\install.rdf (The system cannot find the file specified)

    ReplyDelete
  2. Nice to see the simple aricle. Also while performing the automation testing we need have test data setup. To do efficient test data we can follow below.
    http://softwaretestingterminologies.blogspot.in/2017/03/tips-to-design-your-test-data.html

    ReplyDelete
  3. This is really a nice and informative, containing all information and also has a great impact on the new technology. Check it out here: Search Bar Firefox 57 Quantum addon

    ReplyDelete
  4. It's late finding this act. At least, it's a thing to be familiar with that there are such events exist. I agree with your Blog and I will be back to inspect it more in the future so please keep up your act.
    360Digitmg supply chain analytics in hyderabad

    ReplyDelete