Overview
The WinCore driver is an Appium driver intended for black-box automated testing of Windows desktop applications through the standard WebDriver API.
Demo¶
Target Platforms¶
The driver supports the following Windows platforms as automation targets:
| Platform | Supported |
|---|---|
| Windows 10 | |
| Windows 11 | |
| Windows Server | |
| Windows IoT |
Target Applications¶
The driver can automate any application whose user interface is exposed through Microsoft UI Automation (UIA):
| Application type | What the driver reaches |
|---|---|
| UWP, Win32, WinForms, WPF | Every UIA-visible control, including raw-view elements hidden from the control view |
| WebView2, Chrome, Edge | Embedded web content over the Chrome DevTools Protocol, from the same session. See the Hybrid Mode guide |
| Internet Explorer 11 | HTML content through the built-in IE DOM bridge. See the Internet Explorer guide |
| Legacy MSAA grids and controls | Content hidden behind placeholder names, through standard accessibility values |
The following application types are not supported out of the box:
- Java applications (Swing, AWT, and other JVM UI toolkits). Their controls are not exposed to UIA, so the driver only sees the top-level window.
- Any other application that does not expose its user interface through UIA or MSAA, for example applications that draw all of their controls themselves.
- Internet Explorer versions older than 11.
Support for such applications can be added with server plugins, which provide element trees from outside of UIA.
Technologies Used¶
The WinCore driver uses the W3C WebDriver protocol for session management. Under the hood, the driver combines several different technologies to achieve its functionality:
- Native testing
- Based on Microsoft UI Automation (UIA3), the accessibility framework that exposes the user interface of Windows applications
- Provided by
WincoreServer.exe, a .NET process bundled with the driver that lives for the length of the session. It handles element finding, UIA patterns, XPath, page source, process and window management, the clipboard, screenshots, file operations and PowerShell execution - Legacy controls with no UIA children fall back to the Microsoft Active Accessibility (MSAA) tree
- Input
- Webview testing
- Based on the ChromeDriver server and Microsoft Edge WebDriver
- Provided by the
appium-chromedriverlibrary
- Internet Explorer testing
- Provided by
IEBridge.exe, a 32-bit process bundled with the driver that reads the IE DOM through COM
- Provided by
- Additional tools
- Screen recording is handled by FFmpeg
- Element trees outside of UIA can be provided by server plugins
End-to-End Architecture¶
The diagram below is intentionally the simplest end-to-end example. Cloud service providers, device farms, network gateways, and sophisticated local setups may insert additional layers between the client library and the automation host.
flowchart TD
subgraph ClientSide["Test Client"]
T["Test Code"]
CL["Appium Client Library<br/>(Java / Python / JS / Ruby / C#)"]
end
subgraph ServerHost["Windows Automation Host"]
AS["Appium Server<br/>WebDriver HTTP API"]
WD["WinCore Driver<br/>(appium-wincore-driver, Node.js)"]
WS["WincoreServer.exe<br/>(.NET, UIA3)"]
U32["user32.dll<br/>(SendInput)"]
CDM["Chromedriver / Edge WebDriver<br/>(webview only)"]
AUT["Application Under Test"]
end
T --> CL
CL -->|"W3C WebDriver over HTTP"| AS
AS -->|"Forwards session commands to driver"| WD
WD -->|"JSON over stdin/stdout"| WS
WD -->|"Mouse and keyboard input"| U32
WD -->|"Context switch to WEBVIEW_*"| CDM
WS -->|"UI Automation APIs"| AUT
U32 -->|"Synthesized input"| AUT
CDM -->|"Chrome DevTools Protocol"| AUT