Find UI Element

desktop · N019 · starter-package 7.0.1

Purpose: Finds a native UI control using accessibility role, name, automation ID, or hierarchy.

Normal connected use

Find one native desktop control inside a bounded target window by role, accessible name, automation ID, or ancestor hierarchy.

Pick the target in the application

Open the target window, choose Pick a desktop control in this block’s settings and hold the pointer over the control for five seconds. Nodestly fills in the window title, accessibility role and automation ID or accessible name. Connect Element to Read UI Element Value to inspect it, or to Click UI Element to act on it. If several controls share those identifiers, specify an ancestor or a match index. When the window title changes between runs, edit the saved title and use the contains match.

Inputs and settings

  • windowTitle — Window title: text; optional; text.
  • processId — Process ID: number; optional; number.
  • windowTitleMatch — Window title match: text; optional; text.
  • role — Accessibility role: text; optional; text.
  • name — Accessible name: text; optional; text.
  • nameMatch — Accessible name match: text; optional; text.
  • automationId — Automation ID: text; optional; text.
  • hierarchy — Ancestor hierarchy: list; optional.
  • matchIndex — Match index: number; optional; number.
  • timeoutMs — Timeout (ms): number; optional; number.

A present connector value always wins over the saved setting, including false, 0, or empty text. A present malformed value produces an input error and never falls back to a setting or default.

Visible settings

IDLabelControlDefault
windowTitleWindow titletextempty text
processIdProcess IDnumber0
nameAccessible nametextempty text
automationIdAutomation IDtextempty text
hierarchyJsonAncestor hierarchytextarea"[]"
matchIndexMatch indexnumber0
timeoutMsTimeout (ms)number5000
windowTitleMatchWindow title matchselect"exact"
roleAccessibility roleselect"any"
nameMatchAccessible name matchselect"exact"

Outputs

  • element — UI element; text.
  • name — Accessible name; text.
  • role — Accessibility role; text.
  • automationId — Automation ID; text.
  • enabled — Enabled; boolean.
  • fire — is emitted only after all required outputs are valid.

What happens when it runs

This block uses the connected UI Element text ID to work with the matching Windows interface element.

Error handling

  • Missing, wrong-type, or invalid input stops at this block and names the input or setting to correct.
  • If a connected output is no longer available or contains the wrong kind of item, run the earlier block again and reconnect its new output.
  • A requested confirmation starts on Cancel. If you cancel, the block makes no change.
  • If a required Windows or Nodestly feature is unavailable, the block stops with a clear message that explains what to do.
  • Fire and partial outputs are not emitted after failure. Messages refer only to inputs, settings, resources, the target application, or Windows features the user can check.

Exact settings reference

These are the saved settings and defaults. If a value is connected to the matching input, that connected value is used.

IDSettingControlDefaultBounds/options
windowTitleWindow titletextEmpty text—
processIdProcess IDnumber0—
nameAccessible nametextEmpty text—
automationIdAutomation IDtextEmpty text—
hierarchyJsonhierarchyJsontextarea[]—
matchIndexMatch indexnumber0—
timeoutMsTimeout (ms)number5000—
windowTitleMatchWindow title matchtoggleexactoptions: exact, contains
roleAccessibility roletoggleanyoptions: any, Button, Calendar, CheckBox, ComboBox, Custom, DataGrid, DataItem, Document, Edit, Group, Header, HeaderItem, Hyperlink, Image, List, ListItem, Menu, MenuBar, MenuItem, Pane, ProgressBar, RadioButton, ScrollBar, Separator, Slider, Spinner, SplitButton, StatusBar, Tab, TabItem, Table, Text, Thumb, TitleBar, ToolBar, ToolTip, Tree, TreeItem, Window
nameMatchAccessible name matchtoggleexactoptions: exact, contains