UNPKG

1.03 kBMarkdownView Raw
1karma-webdriver-launcher
2========================
3
4A plugin for Karma to launch Remote WebDriver instances.
5
6## Usage
7
8```bash
9$ npm install karma-webdriver-launcher
10```
11
12In your karma.conf.js file (e.g. using SauceLabs Connect - you need to have a scout tunnel open for this to work!):
13
14```js
15module.exports = function(karma) {
16
17 var webdriverConfig = {
18 hostname: 'ondemand.saucelabs.com',
19 port: 80,
20 user: 'USERNAME',
21 pwd: 'APIKEY'
22 }
23
24
25 ...
26
27 config.set({
28
29 ...
30
31 customLaunchers: {
32 'IE7': {
33 base: 'WebDriver',
34 config: webdriverConfig,
35 browserName: 'internet explorer',
36 platform: 'XP',
37 version: '10',
38 'x-ua-compatible': 'IE=EmulateIE7',
39 name: 'Karma',
40 pseudoActivityInterval: 30000
41 }
42 },
43
44 browsers: ['IE7'],
45
46 ...
47
48 });
49
50
51```
52
53### pseudoActivityInterval
54Interval in ms to do some activity to avoid killing session by timeout.
55
56If not set or set to `0` - no activity will be performed.