2.0.0-rc.1 • Published 1 year ago

@d-m-p/karma-selenium4-webdriver-launcher v2.0.0-rc.1

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

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

2.0.0-alpha.3

1 year ago

2.0.0-alpha.4

1 year ago

2.0.0-alpha.5

1 year ago

2.0.0-alpha.6

1 year ago

2.0.0-rc.1

1 year ago

2.0.0-alpha.2

1 year ago

2.0.0-alpha.7

1 year ago

2.0.0-alpha.8

1 year ago

2.0.0-alpha.1

1 year ago