Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/licanhua/wdio-winappdriver-service
A WebdriverIO service to start & stop WinAppDriver
https://github.com/licanhua/wdio-winappdriver-service
wdio webdriverio winappdriver
Last synced: about 1 month ago
JSON representation
A WebdriverIO service to start & stop WinAppDriver
- Host: GitHub
- URL: https://github.com/licanhua/wdio-winappdriver-service
- Owner: licanhua
- License: mit
- Created: 2020-11-27T20:30:51.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2021-08-09T15:59:45.000Z (over 3 years ago)
- Last Synced: 2024-08-08T16:33:24.956Z (3 months ago)
- Topics: wdio, webdriverio, winappdriver
- Language: TypeScript
- Homepage:
- Size: 29.3 KB
- Stars: 2
- Watchers: 2
- Forks: 1
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-webdriverio - winappdriver - Run WinAppDriver server seamlessly when running tests. (Plugins / Services)
README
[![NPM](https://nodei.co/npm/wdio-winappdriver-service.png)](https://npmjs.org/package/wdio-winappdriver-service)
# WebdriverIO WinAppDriver Service
This service helps you to run the WinAppDriver server seamlessly when running tests with the [WDIO testrunner](https://webdriver.io/guide/testrunner/gettingstarted.html). It starts the [WinAppDriver](https://github.com/Microsoft/WinAppDriver) in a child process.
## Installation
```bash
npm install wdio-winappdriver-service --save-dev
```Instructions on how to install `WebdriverIO` can be found [here.](https://webdriver.io/docs/gettingstarted.html)
## Configuration
In order to use the service you need to add `winappdriver` to your service array:
```js
// 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:
```js
// wdio.conf.js
export.config = {
// ...
services: [
['winappdriver', {
// WinAppDriver service options here
// ...
}]
],
// ...
};
```### logPath
Path where all logs from the winappdriver server should be stored.
Type: `String`
Example:
```js
export.config = {
// ...
services: [
['winappdriver', {
logPath : './'
}]
],
// ...
}
```### command
To use your own installation of WinAppDriver, e.g. globally installed, specify the command which should be started.
Type: `String`
Example:
```js
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](https://github.com/Microsoft/WinAppDriver) for possible arguments.
Type: `Array`
Default: `[]`
Example:
```js
export.config = {
// ...
services: [
['winappdriver', {
args: ['10.0.0.10', '4723/wd/hub']
}]
],
// ...
}
```