@saritasa/karma-selenium-launcher

1.0.6 • Public • Published

karma-selenium-launcher

Launcher for selenium webdriver

Installation

npm install @saritasa/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.

Readme

Keywords

none

Package Sidebar

Install

npm i @saritasa/karma-selenium-launcher

Weekly Downloads

1

Version

1.0.6

License

MIT

Unpacked Size

3.73 kB

Total Files

3

Last publish

Collaborators

  • maximkorkin-saritasa
  • dbitkovski-saritasa
  • golovachev-saritasa
  • andrey-saritasa
  • saritasa-npm
  • ko-vasilev-saritasa