@d-m-p/karma-selenium4-webdriver-launcher
v2.0.0-rc.1
Published
A Karma plugin. Launcher for Remote WebDriver instances.
Downloads
147
Maintainers
Readme
@d-m-p/karma-selenium4-webdriver-launcher
Forked from karma-webdriver-launcher.
Modified to work with the webdriver
package instead of the no longer maintained wd
package.
Ported to Typescript, though there were some issues to export the types, that's why they are located in
module @d-m-p/karma-selenium4-webdriver-launcher/types
. Special handling of x-ua-compatible
was removed, IE should
be considered outdated.
A plugin for Karma to launch Remote WebDriver instances.
Usage
$ npm install @d-m-p/karma-selenium4-webdriver-launcher
In your karma.conf.js file (e.g. using a running Selenium Grid at grid.local!):
module.exports = function(karma) {
var webdriverConfig = {
hostname: 'grid.local',
port: 4444,
}
config.set({
customLaunchers: {
ChromeWebdriver: {
base: 'Selenium4WebDriverLauncher',
config: webdriverConfig,
browserName: 'chrome',
pseudoActivityInterval: 30000
}
},
browsers: ['ChromeWebdriver'],
});
}
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.