Skip to content
This repository has been archived by the owner on Oct 27, 2023. It is now read-only.

An example Windows (UWP) automated UI testing project with Appium using the Page Object Pattern

License

Notifications You must be signed in to change notification settings

jamesmcroft/uwp-appium-pop-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Windows (UWP) Appium Page Object Pattern Example

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.

Wnat is the Page Object Pattern?

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.

Get started

  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 (ms-settings:developers) in Windows settings
  4. Run WinAppDriver.exe from the installation directory (E.g. C:\Program Files (x86)\Windows Application Driver)
  5. Clone this repo to your machine
  6. Load and run tests from the project solution in src using dotnet test or a test runner of your choice

About

An example Windows (UWP) automated UI testing project with Appium using the Page Object Pattern

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages