Windows Application Driver
Перейти к файлу
Dustin L. Howett 9c561a52ac
Update the steps for running WinAppDriver autonomously
The steps in the current documentation leave ambiguity for the reader to figure out setup steps in a CI/CD kind of pipeline.
Adding details around batch files and Task Schedulers to run winappdriver autonomously would help automation/testing teams to setup Winappdriver in a complementary style to the CI/CD flow.
2022-07-29 16:41:20 -05:00
ApplicationUnderTests Move Xaml Controls Gallery to ApplicationUnderTests (#914) 2019-10-15 16:42:58 -07:00
Docs Reword significantly 2022-07-29 16:40:14 -05:00
Samples add NotepadCalculatorTest sample (#903) 2019-12-10 13:30:36 -08:00
Tests Updated ReadMe to reference new /Docs/ directory. Added /Docs/ directory to host all related WinAppDriver documentation. 2019-08-27 16:17:43 -07:00
Tools/UIRecorder Merged PR 2803772: UX improvements to UI Recorder 2019-03-11 22:46:30 +00:00
.gitattributes Repo of WPF app, wpfnotepad, that demonstrates that WinAppDriver cannot find elements 2016-11-18 15:42:38 -05:00
.gitignore init 2019-10-01 20:58:24 -07:00
.gitmodules Move Xaml Controls Gallery to ApplicationUnderTests (#914) 2019-10-15 16:42:58 -07:00
LICENSE Initial commit 2016-03-20 01:48:46 -07:00
README.md Updated ReadMe to reference new /Docs/ directory. Added /Docs/ directory to host all related WinAppDriver documentation. 2019-08-27 16:17:43 -07:00
SECURITY.md Update supporting documentation (#1309) 2020-09-10 21:50:22 -07:00
SUPPORT.md Update supporting documentation (#1309) 2020-09-10 21:50:22 -07:00
WinAppDriver.pfx Consolidating UWP applications to use a consistent certificate 2017-08-03 19:21:52 -07:00

README.md

Windows Application Driver

Windows Application Driver (WinAppDriver) is a service to support Selenium-like UI Test Automation on Windows Applications. This service supports testing Universal Windows Platform (UWP), Windows Forms (WinForms), Windows Presentation Foundation (WPF), and Classic Windows (Win32) apps on Windows 10 PCs.

Install & Run WinAppDriver

  1. Download Windows Application Driver installer from https://github.com/Microsoft/WinAppDriver/releases
  2. Run the installer on a Windows 10 machine where your application under test is installed and will be tested
  3. Enable Developer Mode in Windows settings
  4. Run WinAppDriver.exe from the installation directory (E.g. C:\Program Files (x86)\Windows Application Driver)

Windows Application Driver will then be running on the test machine listening to requests on the default IP address and port (127.0.0.1:4723). You can then run any of our Tests or Samples. WinAppDriver.exe can be configured to listen to a different IP address and port as follows:

WinAppDriver.exe 4727
WinAppDriver.exe 10.0.0.10 4725
WinAppDriver.exe 10.0.0.10 4723/wd/hub

Note: You must run WinAppDriver.exe as administrator to listen to a different IP address and port.

Write an Automation Script

Now that you've successfully installed WinAppDriver, you can get started with authoring your first automation script!

Supported APIs

See here for a list of supported APIs by WinAppDriver. API support may differ from Appium and other counterparts.

FAQ & Documentation

Additional documentation on WinAppDriver and related topics can be found under /Docs/, such as the following:

Repository Content

This repository includes the following content:

  • Samples - used to showcase various commands and operations such as opening applications, finding elements, clicking elements, typing keystrokes, reading texts, etc; and can be run against built-in Windows 10 applications such as Alarms & Clock, Calculator, and Notepad.
  • Tests - used to verify the functionality of Windows Application Driver itself. The tests cover each API endpoints extensively and also against all basic UI control scenario, and demonstrate how to invoke certain command in C#. In addition, they show how to interact with some more complex UI elements such as DatePicker, SplitViewPane, Slider, etc.
  • UI Recorder - standalone tool that aims to provide users a simpler way of creating automaton scripts by recording UI events performed by the user and generating XPath queries and C# code on the fly. Read more about it on our Wiki.
  • Docs - subdirectory hosting WinAppDriver related documentation.

Vote on New Features

Add your feature request in issues or 👍 (+1) existing issues labeled as Enhancement