Taking advantage of the WinAppDriver service to provide Appium UI tests for Windows apps, this project serves as a simple example of building tests following the Page Object Pattern.
The sample uses the default Windows Alarms & Clock application to provide example tests for adding and editing alarms.
The goal of the page object pattern is to use page objects to abstract page information away from your tests. Ideally, they will store all your selectors to find UI elements that a page is aware of and actions that are capable of the page.
As a result, the page object provides reusable, chainable components which can be used to create well-structured, easily readable tests.
Explore the EditAlarmPage example for more info.
- Download Windows Application Driver installer from https://github.com/Microsoft/WinAppDriver/releases
- Run the installer on a Windows 10 machine where your application under test is installed and will be tested
- Enable Developer Mode (ms-settings:developers) in Windows settings
- Run
WinAppDriver.exe
from the installation directory (E.g.C:\Program Files (x86)\Windows Application Driver
) - Clone this repo to your machine
- Load and run tests from the project solution in src using
dotnet test
or a test runner of your choice