Git Product home page Git Product logo

wdio-winappdriver-service's Introduction

NPM

WebdriverIO WinAppDriver Service

This service helps you to run the WinAppDriver server seamlessly when running tests with the WDIO testrunner. It starts the WinAppDriver in a child process.

Installation

npm install wdio-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', {
            // WinAppDriver 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 WinAppDriver, 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.

Type: Array

Default: []

Example:

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

wdio-winappdriver-service's People

Contributors

licanhua avatar msftenhanceprovenance avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

wdio-winappdriver-service's Issues

browser.pause() will pause the tested application as well

The application under the test is fairly big and complicate, it has got the splash screen as well.
browser.pause() is used when the session switches to the main window of the application after splash screen.
The main window comes up fine and session switches to it and the rest tests work OK if, only if the WinAppService is run out of wdio local_runner from a separate console in advance.
If WinAppService was started by wdio-winappderiver-service, the main windows pauses as well at certain point of the rendering, so the first element selector after the session windows switching fails.

Doesnt work with "wdio/local-runner" version 7.0.0 and higher.

When I am trying to start test with local-runner version 7.0.0 or higher have this error.

ERROR @wdio/runner: Error: Invalid or unsupported WebDriver capabilities found ("app"). Ensure to only use valid W3C WebDriver capabilities (see https://w3c.github.io/webdriver/#capabilities). [0-0] at Object.startWebDriverSession (D:\winappdriver-test\node_modules\webdriver\build\utils.js:38:19) [0-0] at Function.newSession (D:\winappdriver-test\node_modules\webdriver\build\index.js:58:59) [0-0] at Object.remote (D:\winappdriver-test\node_modules\webdriverio\build\index.js:67:43) [0-0] at async Runner._startSession (D:\winappdriver-test\node_modules\@wdio\runner\build\index.js:216:56) [0-0] at async Runner._initSession (D:\winappdriver-test\node_modules\@wdio\runner\build\index.js:172:25) [0-0] at async Runner.run (D:\winappdriver-test\node_modules\@wdio\runner\build\index.js:87:19)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.