@d-m-p/karma-selenium4-webdriver-launcher
TypeScript icon, indicating that this package has built-in type declarations

2.0.0-rc.1 • Public • Published

@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.

Package Sidebar

Install

npm i @d-m-p/karma-selenium4-webdriver-launcher

Weekly Downloads

30

Version

2.0.0-rc.1

License

MIT

Unpacked Size

11 kB

Total Files

10

Last publish

Collaborators

  • ygottschalk