https://github.com/react-native-windows/appium-windows-driver
Support WinAppDriver 1.2 RC
https://github.com/react-native-windows/appium-windows-driver
Last synced: 5 months ago
JSON representation
Support WinAppDriver 1.2 RC
- Host: GitHub
- URL: https://github.com/react-native-windows/appium-windows-driver
- Owner: react-native-windows
- License: apache-2.0
- Created: 2019-10-10T20:12:01.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2019-10-10T20:13:01.000Z (over 6 years ago)
- Last Synced: 2025-03-05T20:41:13.129Z (11 months ago)
- Language: JavaScript
- Size: 37.1 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Appium Windows Driver
===================
[](https://greenkeeper.io/)
Appium Windows Driver is a test automation tool for Windows devices. Appium Windows Driver automates UWP apps on Windows 10. In the future it will automate other kinds of native, hybrid and mobile web apps on Windows 10 and Windows 10 mobile simulators and real devices. Appium Windows Driver is part of the [Appium](https://github.com/appium/appium) mobile test automation tool.
## Installation
```
npm install appium-windows-driver
```
## Usage
Import Windows Driver, set [desired capabilities](http://appium.io/slate/en/1.5/?javascript#appium-server-capabilities) and create a session:
```
import { WindowsDriver } from `appium-windows-driver`
let defaultCaps = {
app: 'your.app.id',
platformName: 'Windows'
};
let driver = new WindowsDriver();
await driver.createSession(defaultCaps);
```
## WindowsDriver-specific capabilities
|Capability|Description|Values|
|----------|-----------|------|
|`createSessionTimeout`|Timeout in milliseconds used to retry `WinAppDriver` session startup. This capability could be used as a workaround for the long startup times of UWP applications (aka `Failed to locate opened application window with appId: TestCompany.my_app4!App, and processId: 8480`). Default value `20000`|e.g., `15000`|
## Watch code for changes, re-transpile and run unit tests:
```
gulp
```
## Test
You can run unit and e2e tests:
```
// unit tests:
gulp once
// e2e tests
gulp e2e-test
```