UiPath Documentation
activities
latest
false
UI Automation activities

UI Tree

The tree-browsing view of UI Explorer, for inspecting the UI hierarchy of an indicated application and setting a new target from any node in it.

Overview​

UI Tree is a view of UI Explorer that displays the full UI hierarchy of an indicated application as a browsable tree. Each node in the tree represents a UI element, and selecting one shows its properties and generated selector in a side panel.

UI Tree helps when the element you want is not reachable by hovering over it on screen, for example because it is nested deep in a hierarchy, or temporarily hidden behind another element.

Opening UI Tree​

UI Tree opens from two places:

  • The Selection Helper, through the Indicate target via UI Tree, Add anchor via UI Tree, or Indicate application via UI Tree button, while indicating a target, anchor, or application.
  • The Advanced Selector Editor, through the Open in UI Tree button next to an already-indicated target or anchor, for re-indicating that element from the tree instead of the current selector.
Note:

The entry point from the Advanced Selector Editor is disabled when the current target configuration does not support anchors, or when the maximum number of anchors is already reached.

UI tree tab​

The UI tree tab displays the hierarchy as detected by the standard UI Automation driver technology. The Filter nodes search box narrows the list down to nodes whose name matches the entered text, and the arrow in front of each node expands or collapses it.

Two buttons above the tree act on the whole view or on the focused node:

  • Refresh - Reloads the tree from the live application, useful after the application's UI has changed.
  • Bring into view - Brings the focused node into the foreground in the application, when the underlying technology supports it.

Selecting a node loads its properties and selector in the panel on the right. A browser tab that was unloaded by the browser to save memory shows a sleeping-tab icon; only some of its properties are available until you wake it up.

CV elements tab​

The CV elements tab shows elements detected visually by Computer Vision instead of the driver-based hierarchy, grouped into categories such as elements, merged words, tables, and OCR text. This tab is unavailable when the application has no window to analyze, or when the Computer Vision targeting method is disabled for the project.

If Computer Vision has not been enabled yet for the current element, the tab shows an explanation and an Enable Computer Vision button instead of the node list. Selecting it takes a screenshot of the application and detects its elements, which can take a few seconds.

Properties and Selector panels​

The panel on the right of the tree has two tabs:

  • Properties - Lists the focused node's attributes, grouped into sections such as Selector compatible (the attributes usable in a selector) and Other(s). The Filter properties search box filters attributes by name, and the eye icon shows or hides properties with an empty value. Each property, and each group, has a copy-to-clipboard button.
  • Selector - Shows the read-only selector generated for the focused node. This tab is only available on the UI tree tab, since CV elements are identified visually rather than through a selector.

If no selector can be generated for the focused node, or no node is focused yet, the Selector tab shows a corresponding message instead.

Setting the target​

The buttons at the bottom of the window close UI Tree:

  • Discard - Closes UI Tree without changing the current target, anchor, or application.
  • Set as target / Set as anchor / Set as application - Applies the focused node as the new target, anchor, or application, and closes UI Tree. The label matches what you were indicating when UI Tree was opened.
  • Save - Shown instead of Set as target when UI Tree was opened from the Advanced Selector Editor: applies the focused node to the Selector Editor instead of replacing the whole descriptor.

Was this page helpful?

Connect

Need help? Support(opens in new window)

Want to learn? UiPath Academy(opens in new window)

Have questions? UiPath Forum(opens in new window)

Stay updated