Skip to content

Instantly share code, notes, and snippets.

@grawk
Created June 7, 2017 20:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save grawk/f054adcdcaef6eae923189c084f02302 to your computer and use it in GitHub Desktop.
Save grawk/f054adcdcaef6eae923189c084f02302 to your computer and use it in GitHub Desktop.
Nemo using firefox profile

Using the selenium-webdriver/firefox module to set firefox profile in nemo

Use the "builders" version of the driver configuration:

  "driver": {
    "builders": {
      "forBrowser": ["firefox"],
      "setFirefoxOptions": ["require:./firefoxProfile"]
    }
  },

The "firefoxProfile.js" file:

'use strict';

const firefox = require('selenium-webdriver/firefox');
let profile = new firefox.Profile();
//set any profile options here
profile.setPreference('extensions.firebug.showChromeErrors', true);
profile.addExtension('/path/to/firebug.xpi');

let options = new firefox.Options().setProfile(profile);
module.exports = options;

That's it!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment