🖋️
QualityMate
  • QualityMate
  • Getting Started
    • Introduction
    • Why QualityMate
    • Architecture
    • Supported Web Browsers
    • Glossary
  • Components
    • UI Player
      • Basic Concepts
      • UiPlayer
      • MSTest Integration
      • Samples
        • QualityMate Sample Desktop
        • QualityMate Sample Web
        • QualityMate MSTest Integration Sample Desktop
        • QualityMate MSTest Integration Sample Web
        • QualityMate Integration with Test Frameworks
        • Web Authentication Sample
      • QualityMate Project Template
    • UI Recorder
      • Basic Concepts
      • Setting Up the Recorder
      • Validating an Element
      • Generating QualityMate Solution
  • Tools
    • File Comparators
    • Image Processor
    • Project Merger
    • Test Case Generator
      • Filters
      • Rename Recorded Controls
  • Basic Concepts
    • Page Object
      • Work Guide
    • Controls
      • Control Types
        • Generic Types
        • Desktop types
        • Web Types
        • WebMap types
          • Kendo PowerBuilder
          • Kendo WinForms
          • Kendo Silverlight
      • Interactions
        • SendKeys
        • Validate
    • Selectors
      • Selectors in Code
      • Default Selector
      • Shared Selector
      • Selectors Category
        • CSS Selector
        • XPath Selector
        • Image Selector
        • Frame Selector
      • Identifying Selector
        • Identify for Windows Desktop
        • Identify for Web
  • How to Guides
    • Setting Up the Configuration
      • Parameters
      • Context
      • Loading External Data
    • Awaiting for the Application
      • Busy Loaders
      • Retries
    • Defining Controls
      • Extending Controls
      • Control Slice
      • Control Collection
    • Logging on Tests
      • QualityMate Reports
      • Logging
  • Help
    • Best Practices
      • Environment
      • Tests
      • Page Objects
      • Validations
      • Interactions
      • Image Comparisons
    • Known Issues
    • Continuous Integration
      • Agents Session
    • Upgrading QualityMate
      • From version 7 to version 8
      • Previous Versions
      • How to switch from TestFeature to UiTest
    • VS Test
      • Command Line
      • Generate Reports
  • API
    • Control Interfaces
      • IButton
      • ICheckBox
      • IComboBox
      • IControl
      • IControlSlice
      • IDateTimePicker
      • IElement
      • IGrid
      • IGroupBox
      • ILabel
      • IListBox
      • IMenu
      • INumericUpDown
      • IPageObject
      • IProgressBar
      • IRadioButton
      • IRadioButtonGroup
      • ISplitButton
      • IStatusStrip
      • ITab
      • ITextBox
      • IToggleButton
      • IToolBar
      • ITreeView
    • Behavior
      • ICheckableControl
      • IList
      • ITextControl
    • Enums
      • ClickType
      • KeyModifiers
      • MouseButton
  • Changelog
    • Changelog
      • Version 8
      • Version 7
      • Version 6
      • Version 5
      • Version 4
      • Version 3
Powered by GitBook
On this page
  • Inspect Tool - FlaUIInspect
  • Before this guide
  • Setup FlaUIInspect
  • Finding my Application
  • Element Information
  • Creating Selector
  • Code Example
  • Element Patterns

Was this helpful?

  1. Basic Concepts
  2. Selectors
  3. Identifying Selector

Identify for Windows Desktop

This is a short guide that will show you how to find selectors for Windows desktop applications.

PreviousIdentifying SelectorNextIdentify for Web

Last updated 3 years ago

Was this helpful?

Inspect Tool - FlaUIInspect

To identify selectors on Desktop applications, we will use the FlaUInspect application. You can get the tool here:. From here we will refer FlaUIInspect as Inspect.

Before this guide

This guide assumes that you will use our asset application, but the process is the same for any desktop application.

Setup FlaUIInspect

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.

Finding my 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.

Element Information

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.

Creating Selector

You will primarily focus on these 3 properties when creating a selector for desktop applications:

  • AutomationId

  • ClassName

  • ControlType

Code Example

An example to bind elements with the common selectors using our application would be like the following:

using Mobilize.QualityMate.Automation.Entities;
using Mobilize.QualityMate.Automation.Selectors;
using Mobilize.QualityMate.ControlInterfaces;

[Selector("#Form1")] 
public class MyApplication : PageObject
{
    [Selector("[ControlType='Button']")]
    public IButton MyButton { get; set; }
    
    // ...
}

Element Patterns

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.

Check the article to know some QualityMate syntax improved.

Shared Selector
FlaUInspect1.3.0
4KB
DesktopAssets.zip
archive
Desktop Application
Select hover mode in the Inspect
Window Details on Inspect
Element Details on Inspect
Select application through the Inspect
FlaUInspect Start Window