Studio User Guide
Last updated Jul 15, 2024

Non-Greedy Search

How Non-Greedy Search Works

Introducing Non-Greedy search in your selectors instructs it to search through all the active windows or browser instances which match the top-level tags of your selector, and not just the window instances in focus. Non-Greedy search makes use of the idx() attribute, which needs to be included in the top-level tag, as follows:




Searches through all active window instances for the element matching the top-level tag attributes.

Please note that the <idx='1'> option only searches through window instances in focus.

Currently, Non-Greedy search is supported for the following selector types:

Selector Type







not available


not available


not available


not available


not available

Selectors inside the following containers:

  • Open Application
  • Open Browsers
  • Attach Window
  • Attach Browser

not available

Universal Windows Platform (UWP) applications

not available

Was this page helpful?

Get The Help You Need
Learning RPA - Automation Courses
UiPath Community Forum
Uipath Logo White
Trust and Security
© 2005-2024 UiPath. All rights reserved.