Identify for Windows Desktop
This is a short guide that will show you how to find selectors for Windows desktop applications.
Last updated
This is a short guide that will show you how to find selectors for Windows desktop applications.
Last updated
To identify selectors on Desktop applications, we will use the FlaUInspect application. You can get the tool here: FlaUInspect1.3.0. From here we will refer FlaUIInspect as Inspect.
This guide assumes that you will use our asset application, but the process is the same for any desktop application.
After opening the Inspect, the application will ask you to choose which UI version you want to use, select the UIA3 Interop which is the one that QualityMate uses.
The Inspect will then load all the UI applications that are active in your computer into a Pane called Desktop and display them as a tree where Desktop is the root.
If your application was launched using admin rights, you must run the Inspect with admin rights. If not the Inspect may not show the information of your application.
To find your application you can navigate through the tree and for any option, you click the Inspect will highlight the element with a red rectangle for a few seconds.
Also, you can use the Hover mode, which allows you to use the Ctrl
key to find applications and controls.
After any of both modes, the information of the element will be displayed on the right side of the Inspect.
This information is displayed for any element you select and is the one you need to identify or create the selector.
You will primarily focus on these 3 properties when creating a selector for desktop applications:
AutomationId
ClassName
ControlType
An example to bind elements with the common selectors using our application would be like the following:
Check the Shared Selector article to know some QualityMate syntax improved.
An Element Pattern is when an element that we are looking for is not where we expected it to be in the Inspect. This behavior is frequently on Menu elements.
Most of these element patterns have been identified, and in these cases, QualityMate will resolve through their interfaces.