Skip to content

Identifying Locators for Desktop Applications

To identify locators for desktop applications, users may use a variety of tools such as:

  • UISpy: Download here. Click the Download button  on the page to get the executable file.
  • Inspect: Download here. Click the Download button  on the page to get the executable file.
  • WinAppDriverUIRecorder: Download here.

How to Identify Locators?

  1. Launch the tool you are using to identify locators, like UISpy or Inspect. (In this example, we’re using Inspect).
  2. Open your target desktop application (e.g., Microsoft Excel).
  3. Hover over the element you want to identify (e.g., the Home tab in Excel). The tool will highlight the selected element.
  4. Capture the locator details displayed in the tool. (Refer to the screenshot below.)

scrn-desktop-driver-identifying-locators

  1. Use the captured element details in automation to interact with the element. Click here to know how to use locators in the automation script.

If locators are not detected using third-party apps, HuLoop provides built-in functions like Image Action Handler or AutoIt Script Handler function to handle such cases efficiently. Learn more.

Back To Top