winappdriver
FreeNo executable scriptsNot checkedUse when a native Windows app (UWP, WPF, WinForms, Win32) must be driven from a Selenium-style client in C#, Java, Python, Ruby or JS: WinAppDriver directly…
by testland★ 18 GitHub starsAbout this skill
winappdriver
Overview
Per the WinAppDriver repository:
"Windows Application Driver (WinAppDriver) is a service to support Selenium-like UI Test Automation on Windows Applications."
WinAppDriver exposes Microsoft UI Automation (UIA) - the Windows
accessibility tree described in
desktop-test-strategy-reference - behind a W3C-WebDriver-compatible HTTP endpoint. Per
wad, it supports four application classes on Windows 10:
"Universal Windows Platform (UWP)", "Windows Forms (WinForms)",
"Windows Presentation Foundation (WPF)", and "Classic Windows (Win32)
apps".
The same UIA surface has two invocation paths: talking to the
Microsoft-maintained WinAppDriver.exe service directly from a Selenium
client, or going through the Appium ecosystem's actively-maintained Node.js
proxy that sits in front of it and adds gestures, multi-window helpers, and
PowerShell hooks. This skill covers both - the direct path in the sections
below, the Appium path in "Invoking via Appium". Go direct when no Appium
(or Node.js) install is wanted on the test host; go via Appium when the
project already runs Appium for other platforms.
When to use
- Native Windows desktop app under test - UWP, WPF, WinForms, or Win32 (wad).
- Selenium-style client already in the project (C#
WindowsDriver<T>, JavaWindowsDriver, Pythonwebdriver-windows). - Tests must drive system-installed apps (Notepad, Calculator,
Settings) -
appcapability accepts an executable path or UWP application family name (wadauth). - Direct-to-
WinAppDriver.exeis required (no Appium installation permitted on the test host).
For Qt-on-Windows out-of-process tests, this is the recommended
driver per
desktop-test-strategy-reference;
the Qt application must publish a usable QAccessible tree.
How to use
- Install WinAppDriver and enable Developer Mode on a Windows 10/11 machine (Install + enable).
- Launch
WinAppDriver.exeon the default127.0.0.1:4723endpoint (Launch the service). - Declare
app/platformName/appArguments/appTopLevelWindowcapabilities for the app under test (Declare session capabilities). - Author a Selenium-style test that resolves an element by
AccessibilityId(UIAAutomationId) and drives it end to end (Worked example). The full locator-strategy table,Inspect.exediscovery, and attach-to-running-window path live in references/locators-and-ci.md. - Run on a Windows CI runner and parse TRX / JUnit results (feeds
junit-xml-analysis) - full workflow in references/locators-and-ci.md.
Install + enable
Per wad:
- Windows 10 machine with the application under test installed.
- Enable Developer Mode - Settings → Update & Security → For developers → Developer mode (wad).
- Administrator privileges are required to run on a custom
IP / port (wad); default
127.0.0.1:4723runs as a normal user.
Download the latest WinAppDriver installer from the
releases page (latest stable per wad: v1.2.1, published
2020-11-05) and run it on the test machine. The installer drops
WinAppDriver.exe under C:\Program Files (x86)\Windows Application Driver\.
Launch the service
Per wad, launch on the default endpoint:
:: Default - 127.0.0.1:4723
"C:\Program Files (x86)\Windows Application Driver\WinAppDriver.exe"
The service prints Press ENTER to exit. and listens for incoming
W3C-WebDriver session requests. Custom IP / port / URL-prefix bindings
(which require an admin shell) are in
references/locators-and-ci.md.
Declare session capabilities
Per the WinAppDriver authoring guide:
| Capability | Purpose |
|---|---|
app |
Application identifier (UWP family name) or full executable path (wadauth) |
appArguments |
Launch arguments string (wadauth) |
appWorkingDir |
Working directory for classic Win32 apps (wadauth) |
appTopLevelWindow |
Hexadecimal handle of an existing window to attach to (wadauth) |
platformName |
Target platform - set to Windows |
platformVersion |
Platform version string |
Per wadauth, the UWP Application Id appears in the
generated AppX\vs.appxrecipe file under the RegisteredUserModeAppID
node (example shape:
c24c8163-548e-4b84-a466-530178fc0580_scyf5npe3hv32!App).
Worked example
Drive one element end to end - launch Notepad, locate its editor by
AccessibilityId, type into it, and close the session (C# client). The
canonical example from wadauth:
using System;
using OpenQA.Selenium.Appium.Windows;
using OpenQA.Selenium.Remote;
var capabilities = new AppiumOptions();
capabilities.AddAdditionalCapa
Install winappdriver in Claude Code & Claude Desktop
Sign up to install this skill
Create a free account to reveal the install command and save the skill to your library.
- Reveal the one-line install command
- Save skills to your synced library
- Get notified when skills update
Allowed tools
Tools this skill is permitted to call.
No restriction — this skill can use any tool.
Bundled files
FAQ
What does the winappdriver skill do?
Use when a native Windows app (UWP, WPF, WinForms, Win32) must be driven from a Selenium-style client in C#, Java, Python, Ruby or JS: WinAppDriver directly or through the Appium 2 Windows driver, capabilities, AccessibilityId and Name locators, and Windows CI runners. C#-only: flaui-tests.
How do I install the winappdriver skill?
Copy the skill folder into ~/.claude/skills (the Claude Code tab above does this in one command), or install it as a plugin.
Does the winappdriver skill run scripts?
No, this skill is instructions only (SKILL.md) with no executable scripts.
Related skills
ci-review
The scan that the plugin's GitHub Action runs.
by Anthropicazure-static-web-apps
Helps create, configure, and deploy Azure Static Web Apps using the SWA CLI. Use when deploying static sites to Azure, setting up SWA local development…
by GitHubai-ready
Make any repo AI-ready — analyzes your codebase and generates AGENTS.md, copilot-instructions.md, CI workflows, issue templates, and more. Mines your PR…
by GitHubaws-cdk-python-setup
Setup and initialization guide for developing AWS CDK (Cloud Development Kit) applications in Python. This skill enables users to configure environment…
by GitHub