Skip to content

Karma launcher for local browsers (Chrome, Firefox, Safari) using WebDriver

License

Notifications You must be signed in to change notification settings

shaka-bot/karma-local-wd-launcher

 
 

Repository files navigation

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 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({
    browsers: ['Chrome', 'Firefox', 'Safari']
  });
};

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

karma start --browsers Chrome Firefox Safari

About

Karma launcher for local browsers (Chrome, Firefox, Safari) using WebDriver

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%