Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

karma-selenium-launcher

1.0.1 • Public • Published

karma-selenium-launcher

Launcher for selenium webdriver

Installation

npm install karma-selenium-launcher --save-dev

Configuration

//karma.conf.js
module.exports = function(config){
  var webDriverConfig = {
    desiredCapabilities: {
      //capabilities of driver
    },
    host: 'localhost',
    port: 4444,
    path: '/wd/hub'
  };
 
  config.set({
    customLaunchers: {
      selenium_chrome: {
      base: 'Selenium',
      config: webDriverConfig,
      name: 'Karma Test',
      browserName: 'chrome'
      }
    },
    browsers: ['selenium_chrome']
  });
}

Refer to webdriverio config documentation as well as selenium's for desiredCapabilities.

Keywords

none

install

npm i karma-selenium-launcher

Downloadsweekly downloads

3,375

version

1.0.1

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar