100.0.1 • Published 2 years ago

wdio-openfin-service v100.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

WDIO OpenFIn Service


This service helps you to run ChromeDriver seamlessly when running tests with the WDIO testrunner and OpenFin Runtime. It uses the chromedriver NPM package that wraps the ChromeDriver for you. Major version number of this serivce matches that of chromedriver. A branch is created for each majnor ugrade of chromedriver with 'vmajor#' as the name.

Note - this service does not require a Selenium server, but uses ChromeDriver to communicate with the browser directly. It only supports:

capabilities: [{
        browserName: 'openfin'
    }]

Installation

The easiest way is to keep wdio-openfin-service as a devDependency in your package.json.

{
  "devDependencies": {
    "wdio-openfin-service": "~8.0.1"
  }
}

You can simple do it by:

npm install wdio-openfin-service --save-dev

Instructions on how to install WebdriverIO can be found here.

Configuration

The following example configuration shows how to start OpenFin Runtime with app manifest of Hello OpenFin demo app.

// wdio.conf.js
export.config = {
    port: '9515',  // port for ChromeDriver
    path: '/',     // URL path for ChromeDriver

    reporters: ['spec'],
    logLevel: 'warn',
    coloredLogs: true,

    waitforTimeout: 10000,
    connectionRetryTimeout: 900000,
    connectionRetryCount: 1,

    framework: 'mocha',
    mochaOpts: {
        ui: 'bdd'
    },

  services: [
    ['openfin', {
        logFileName: 'wdio-chromedriver.log',
        outputDir: '.',
        args: ['--verbose']  // arguments for launching Chrome Driver
    }]
  ],
  openfin: {
     manifest: 'https://demoappdirectory.openf.in/desktop/config/apps/OpenFin/HelloOpenFin/selenium.json'
  }
};

For more information on WebdriverIO see the homepage.

98.0.1

2 years ago

94.0.1

2 years ago

96.0.3

2 years ago

100.0.1

2 years ago

96.0.2

2 years ago

96.0.1

2 years ago

96.0.0

2 years ago