https://github.com/karma-runner/karma-webdriver-launcher
A plugin for Karma. Launch any browser with WebDriver.
https://github.com/karma-runner/karma-webdriver-launcher
Last synced: 7 months ago
JSON representation
A plugin for Karma. Launch any browser with WebDriver.
- Host: GitHub
- URL: https://github.com/karma-runner/karma-webdriver-launcher
- Owner: karma-runner
- License: mit
- Created: 2013-06-28T00:39:26.000Z (over 12 years ago)
- Default Branch: master
- Last Pushed: 2020-05-21T16:24:04.000Z (over 5 years ago)
- Last Synced: 2025-06-06T21:15:42.237Z (7 months ago)
- Language: JavaScript
- Size: 38.1 KB
- Stars: 66
- Watchers: 10
- Forks: 40
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
README
karma-webdriver-launcher
========================
A plugin for Karma to launch Remote WebDriver instances.
## Usage
```bash
$ 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!):
```js
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.