wpf_wait_for_element
Wait for a WPF element to meet a condition after async work, polling the app to skip retries. Conditions: visible, exists, enabled, hidden.
Instructions
Wait until an element matching the criteria satisfies a condition, polling in the target app so you don't have to sleep-and-retry. Identify the element with type_name, element_name and/or text (same matching as wpf_find_elements). condition: 'visible' (default — element exists and is on screen), 'exists' (in the tree even if not visible), 'enabled' (visible and IsEnabled=true), 'hidden' (no matching visible element — e.g. a spinner disappeared). Returns matched (bool), waited_ms, and matched_handle/element_type when found. Use after a click that triggers async work (dialog opens, spinner clears, button enables) before the next step. timeout_ms default 10000 (max 25000); poll_interval_ms default 250.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | No | ||
| condition | No | visible | |
| type_name | No | ||
| timeout_ms | No | ||
| root_handle | No | ||
| element_name | No | ||
| poll_interval_ms | No |