JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 5411
  • Score
    100M100P100Q135874F
  • License Apache-2.0

Karma Local WebDriver Launcher - Launches local web browsers using WebDriver, to enable screenshots and other advanced tests to be executed in-browser.

Package Exports

  • karma-local-wd-launcher
  • karma-local-wd-launcher/index.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (karma-local-wd-launcher) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

karma-local-wd-launcher

Karma Local WebDriver Launcher

Launches local web browsers using WebDriver, to enable screenshots and other advanced tests to be executed in-browser. If you don't need WebDriver to enable some test scenario in Karma, you can just use typical local browser launchers.

Supports Chrome, Firefox, and Safari.

Installation

npm install --save-dev karma-local-wd-launcher

Drivers

This launcher assumes that drivers such as chromedriver, geckodriver, and safaridriver (Mac only) are already installed, executable, and in your PATH.

Alternately, you may use the environment variables CHROMEDRIVER_PATH, GECKODRIVER_PATH, or SAFARIDRIVER_PATH to indicate where these drivers are installed.

Configuration

// karma.conf.js
module.exports = (config) => {
  config.set({
    browsers: ['Chrome', 'Firefox', 'Safari']
  });
};

You can give Karma's command-line interface a list of browsers, too:

karma start --browsers Chrome Firefox Safari