Wait for UI Element

desktop · N023 · starter-package 7.0.1

Purpose: Waits for a native UI control to appear, disappear, enable, or change.

Normal connected use

Synchronize a desktop workflow by waiting for a bounded native selector or existing element to appear, disappear, enable, or change.

Wait for a control to become ready

Open the application with the target visible and choose Pick a desktop control. Hold the pointer over the target for five seconds. Select enable to wait until a disabled button can be used, or appear to wait for a dialog control to exist. Connect Element to the next action. The timeout limits how long to wait. If Nodestly finds several controls with the same identifiers, narrow the window, add an ancestor or choose a match index.

Inputs and settings

  • element — UI element: text; optional; connect the matching output from an earlier block; the text contains its item ID; text.
  • 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.
  • condition — Condition: text; optional; text.
  • property — Changed property: text; optional; text.
  • baseline — Change baseline: any; optional.
  • timeoutMs — Timeout (ms): number; optional; number.
  • pollIntervalMs — Poll interval (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)number30000
pollIntervalMsPoll interval (ms)number250
windowTitleMatchWindow title matchselect"exact"
roleAccessibility roleselect"any"
nameMatchAccessible name matchselect"exact"
conditionConditionselect"appear"
propertyChanged propertyselect"value"

Outputs

  • element — UI element; text.
  • condition — Condition; text.
  • observed — Observed value; any.
  • 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)number30000—
pollIntervalMsPoll interval (ms)number250—
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
conditionConditiontoggleappearoptions: appear, disappear, enable, change
propertyChanged propertytogglevalueoptions: text, value, state, selection