npm

Need private packages and team management tools?Check out npm Orgs. »

karma-webdriver-launcher

1.0.7 • Public • Published

karma-webdriver-launcher

A plugin for Karma to launch Remote WebDriver instances.

Usage

$ npm install karma-webdriver-launcher

In your karma.conf.js file (e.g. using SauceLabs Connect - you need to have a scout tunnel open for this to work!):

module.exports = function(karma) {
 
  var webdriverConfig = {
    hostname: 'ondemand.saucelabs.com',
    port: 80,
    user: 'USERNAME',
    pwd: 'APIKEY'
  }
 
 
  ...
 
    config.set({
 
      ...
 
      customLaunchers: {
        'IE7': {
          base: 'WebDriver',
          config: webdriverConfig,
          browserName: 'internet explorer',
          platform: 'XP',
          version: '10',
          'x-ua-compatible': 'IE=EmulateIE7',
          name: 'Karma',
          pseudoActivityInterval: 30000
        }
      },
 
      browsers: ['IE7'],
 
      ...
 
    });
 
 

pseudoActivityInterval

Interval in ms to do some activity to avoid killing session by timeout.

If not set or set to 0 - no activity will be performed.

install

npm i karma-webdriver-launcher

Downloadsweekly downloads

10,536

version

1.0.7

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
  • avatar
  • avatar
Report a vulnerability