chrome-modheader

2.0.7 • Public • Published

ModHeader for Chrome Selenium (WebDriver)

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

Installation:

npm install chrome-modheader

Usage

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

const options = new chrome.Options().addExtensions(getExtension());
const driver = await new Builder().forBrowser('chrome').setChromeOptions(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 chrome-modheader

Weekly Downloads

80,454

Version

2.0.7

License

ISC

Unpacked Size

457 kB

Total Files

5

Last publish

Collaborators

  • bewisse
  • modheader