1.6.7 • Published 3 months ago

karma-local-wd-launcher v1.6.7

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
3 months ago

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, Edge, and Safari.

Installation

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

Drivers

This launcher will use the webdriver-installer module to automatically download and install driver binaries for your local browsers. These will be cached in a folder called .webdriver-installer-cache in your home directory.

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

Configuration

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

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

karma start --browsers Chrome Firefox Safari

There is a possibilty to create custom launcher based on existing ones, i.e. to pass additional configuration options to specific WebDriver.

// karma.conf.js
module.exports = (config) => {
  config.set({
    customLaunchers: {
      'ChromeNoBackgroundSuspend': {
        base: 'Chrome',
        config: {
          'goog:chromeOptions': {
            args: [
              '--disable-background-media-suspend',
              '--disable-background-timer-throttling',
              '--disable-backgrounding-occluded-windows',
            ],
          },
        },
      },
    },
  });
};
1.6.7

3 months ago

1.6.6

8 months ago

1.6.5

8 months ago

1.6.4

9 months ago

1.6.3

9 months ago

1.6.2

10 months ago

1.6.1

2 years ago

1.6.0

2 years ago

1.5.0

2 years ago

1.4.3

2 years ago

1.4.2

2 years ago

1.4.1

2 years ago

1.4.0

2 years ago

1.3.1

2 years ago

1.3.0

2 years ago

1.2.5

2 years ago

1.2.4

2 years ago

1.2.3

2 years ago

1.2.2

2 years ago

1.2.1

2 years ago

1.2.0

2 years ago

1.1.1

2 years ago

1.1.0

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago