firefox-modheader

2.0.5 • Public • Published

ModHeader for Firefox Selenium (WebDriver)

This is for using ModHeader in Selenium WebDriver for Firefox. For the Chrome version, look for chrome-modheader instead.

Installation:

npm install firefox-modheader

Usage

const { getExtension, getAddHeaderUrl } = require('firefox-modheader');

const options = new firefox.Options();
options.addExtensions(getExtension());
const driver = await new Builder().forBrowser('firefox').setFirefoxOptions(options).build();
await driver.get(getAddHeaderUrl('HeaderName', 'HeaderValue'));

Please visit ModHeader webdriver documentation page for more details on how to use ModHeader in Selenium WebDriver.

Package Sidebar

Install

npm i firefox-modheader

Weekly Downloads

32,675

Version

2.0.5

License

ISC

Unpacked Size

399 kB

Total Files

5

Last publish

Collaborators

  • bewisse
  • modheader