Skip to content

minsoju/karma-selenium-launcher

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

Releases

No releases published

Packages

No packages published