Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

karma-local-wd-launcher

Package Overview
Dependencies
Maintainers
1
Versions
26
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

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.

  • 1.6.7
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1.9K
decreased by-19.59%
Maintainers
1
Weekly downloads
 
Created
Source

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',
            ],
          },
        },
      },
    },
  });
};

Keywords

FAQs

Package last updated on 06 Feb 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc