Windows Application Driver (WinAppDriver) With C# — Devstringx

Windows Application Driver (WinAppDriver)

What is Windows Application Driver (WinAppDriver)?

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 apps on Windows 10 PC.

How to Install & Run WinAppDriver?

Open WinAppDriver.exe from the installation directory (C:\Program Files (x86)\Windows Application Driver)

After That, WinAppDriver will be running on the test machine listening to requests on the default IP address and port (

Now you are ready to run any of your Tests Scripts.

Read Also:- Most Popular Tools for Automation Testing

Required Packages in Project’s Solutions

We need to add packages ‘Microsoft.WinAppDriver.Appium.WebDriver’ in the current solution from the Nugget as below I have attached the screenshot of the packages.

First, we need to Download the Win SDK file from

By using ‘inspect.exe’ we can inspect the element present on windows application


NOTE: Before executing this script you need to select test.runsettings to your current project and WinAppDriver should be open.

Windows Application Driver (WinAppDriver) Pros:

This is an open-source tool. It uses the web driver protocol. It’s free and developed by Microsoft. WinAppDriver can integrate with selenium and Appium projects in the C# language.


WinAppDriver is a very easy-to-use free tool and it is the best option for Automation on Windows applications rather than a paid one, which is easy to integrate and implement with existing automation projects.

Originally published at on July 28, 2022



Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Devstringx Technologies

Devstringx Technologies

Devstringx Technologies is highly recommended IT company for custom software development, mobile app development and automation testing services