Inspecting UI Elements for WinAppDriver automation using Appium Desktop

WinAppDriver supported locators
  1. Inspect.exe. This is shipped together with Visual studio and it’s inside the SDK directory like this: “C:\Program Files (x86)\Windows Kits\10\bin\10.0.16299.0\x64\inspect.exe”
  2. UI Recorder. standalone tool that aims to provide users a simpler way of creating automaton scripts by recording UI events performed by the user and generating XPath queries and C# code on the fly
  3. Appium Desktop App. It’s a graphical interface for Appium server, also an inspector that help you to look at application’s element.

Download and Install Appium Desktop

  1. Goto
  2. Download the latest release, currently it’s v1.15.0–1

Download and Install WinAppDriver

  1. Goto
  2. Download the latest release, currently it’s v1.1

Use Appium Desktop to Launch Test Application

After Appium is launched, click Start Server, and a new Window is popped up and it showed: ‘The server is running’

"platformName": "windows",
"deviceName": "WindowsPC",
"app": "Microsoft.WindowsCalculator_8wekyb3d8bbwe!App"

Inspect Element

Click ‘Select Elements’, then select the element you are interested in, here I selected ‘5’. In ‘Selected Element’ page on the right side, it includes AutomationId, ClassName, LocalizedControlType, Name, XPath for ‘5’, and that’s what we expect to use in the test case.

Interactive Search

Appium desktop also supports interactive search, just like you are working on CLI. Click ‘Search for element’, then select Locator Strategy like ‘XPath’, and Input selector ‘//Button’ to select all Buttons. Then click search



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
Canhua Li

Canhua Li

Senior Software Engineer — Microsoft