npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@wdio/firefox-profile-service

v9.27.0

Published

WebdriverIO service that lets you define your Firefox profile in your wdio.conf.js

Readme

WDIO Firefox Profile Service

You want to run your Firefox browser with a specific extension or need to set a couple preferences? Selenium allows you to use a profile for the Firefox browser by passing this profile as base64 string to the moz:firefoxOptions.profile property in your desired capabilities. This requires building that profile and converting it into base64. This service for the wdio testrunner takes the work of compiling the profile out of your hand and lets you define your desired options comfortably from the wdio.conf.js file.

To find all possible options open about:config in your Firefox browser or go to mozillaZine website to find the whole documentation about each setting. In Addition to that, you can define compiled (as *.xpi) Firefox extensions that should get installed before the test starts.

Installation

The easiest way is to keep @wdio/firefox-profile-service as a devDependency in your package.json, via:

npm install @wdio/firefox-profile-service --save-dev

Instructions on how to install WebdriverIO can be found here.

Configuration

Setup your profile by adding the firefox-profile service to your service list. Then define your settings in the firefoxProfile property like this:

// wdio.conf.js
export const config = {
    // ...
    services: [
        ['firefox-profile', {
            extensions: [
                '/path/to/extensionA.xpi', // path to .xpi file
                '/path/to/extensionB' // or path to unpacked Firefox extension
            ],
            'xpinstall.signatures.required': false,
            'browser.startup.homepage': 'https://webdriver.io',
            legacy: true // only use for firefox <= 55
        }]
    ],
    // ...
};

If you have built a custom Firefox extension that you want to install in the browser make sure to set 'xpinstall.signatures.required': false` as a profile flag since Firefox extensions are required to be signed by Mozilla.

To use custom unsigned extensions you will also need to use Firefox Developer Edition since the regular Firefox 48 and newer do not allow this.

Options

Contains all settings as key-value pair. You can find all available settings on the about:config page.

extensions

Add one or multiple extensions to the browser session. All entries can be either an absolute path to the .xpi file or the path to an unpacked Firefox extension directory.

Type: String[] Default: []

profileDirectory

Create Firefox profile based on an existing one by setting an absolute path to that profile.

Type: String Default: null

proxy

Set network proxy settings. The parameter proxy is a hash whose structure depends on the value of the mandatory proxyType key, which takes one of the following string values:

  • direct - direct connection (no proxy)
  • system - use operating system proxy settings
  • pac - use an automatic proxy configuration set based on the value of autoconfigUrl key
  • manual - manual proxy settings defined separately for different protocols using values from the following keys: ftpProxy, httpProxy, sslProxy, socksProxy

Type: Object Default: null Example:

  • Automatic Proxy:

    // wdio.conf.js
    export const config = {
        // ...
        services: [
            ['firefox-profile', {
                proxy: {
                    proxyType: 'pac',
                    autoconfigUrl: 'http://myserver/proxy.pac'
                }
            }]
        ],
        // ...
    };
  • Manual HTTP Proxy:

    // wdio.conf.js
    export const config = {
        // ...
        services: [
            ['firefox-profile', {
                proxy: {
                    proxyType: 'manual',
                    httpProxy: '127.0.0.1:8080'
                }
            }]
        ],
        // ...
    };
  • Manual HTTP and HTTPS Proxy:

    // wdio.conf.js
    export const config = {
        // ...
        services: [
            ['firefox-profile', {
                proxy: {
                    proxyType: 'manual',
                    httpProxy: '127.0.0.1:8080',
                    sslProxy: '127.0.0.1:8080'
                }
            }]
        ],
        // ...
    };

legacy

Please set this flag to true if you use Firefox v55 or lower.

Type: Boolean Default: false


For more information on WebdriverIO see the homepage.