1 | karma-webdriver-launcher
|
2 | ========================
|
3 |
|
4 | A plugin for Karma to launch Remote WebDriver instances.
|
5 |
|
6 | ## Usage
|
7 |
|
8 | ```bash
|
9 | $ npm install karma-webdriver-launcher
|
10 | ```
|
11 |
|
12 | In 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
|
15 | module.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
|
54 | Interval in ms to do some activity to avoid killing session by timeout.
|
55 |
|
56 | If not set or set to `0` - no activity will be performed.
|