ios_wait_for_element
Wait until an element appears on screen, polling the accessibility tree. Counterpart of device_wait_for_element. Matches a case-insensitive SUBSTRING against label, name, value and placeholder. Returns { found, waitedMs, element? }. found=false is a normal answer, not an error — it means the element did not appear within the timeout, which is often the assertion you wanted. Matches elements the tree reports whether or not they are on screen, so a hit does NOT prove visibility; check element.visible. Requires an active iOS automation session.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| type | No | Restrict to an element type, e.g. Button (XCUIElementType prefix optional) | |
| udid | Yes | iOS device UDID | |
| label | Yes | Substring to wait for, matched against label / name / value / placeholder | |
| timeout | No | Max wait in ms (default 10000) | |
| interval | No | Poll interval in ms (default 500) |