0.0.1 • Published 3 years ago

winappdriver-service v0.0.1

Weekly downloads
-
License
MIT
Repository
-
Last release
3 years ago

WebdriverIO WinAppDriver Service

This service helps you to run the WinAppDriver server seamlessly when running tests with the WDIO testrunner. It starts the WinAppDriverhttps://github.com/Microsoft/WinAppDriver) in a child process.

Installation

npm install winappdriver-service --save-dev

Instructions on how to install WebdriverIO can be found here.

Configuration

In order to use the service you need to add winappdriver to your service array:

// wdio.conf.js
export.config = {
    // ...
    services: ['winappdriver'],
    // ...
};

Options

The following options can be added to the wdio.conf.js file. To define options for the service you need to add the service to the services list in the following way:

// wdio.conf.js
export.config = {
    // ...
    services: [
        ['winappdriver', {
            // Appium service options here
            // ...
        }]
    ],
    // ...
};

logPath

Path where all logs from the winappdriver server should be stored.

Type: String

Example:

export.config = {
    // ...
    services: [
        ['winappdriver', {
            logPath : './'
        }]
    ],
    // ...
}

command

To use your own installation of Appium, e.g. globally installed, specify the command which should be started.

Type: String

Example:

export.config = {
    // ...
    services: [
        ['winappdriver', {
            command : 'c:\\Program Files (x86)\\Windows Application Driver\\WinAppDriver.exe'
        }]
    ],
    // ...
}

args

List of arguments passed directly to WinAppDriver.

See the documentation for possible arguments. The arguments should be supplied in lower camel case, so --pre-launch true becomes preLaunch: true or passed as an array.

Type: Object or Array

Default: {}

Example:

export.config = {
    // ...
    services: [
        ['winappdriver', {
            args: ['10.0.0.10', ' 4723/wd/hub']
        }]
    ],
    // ...
}
0.0.1

3 years ago