ios_wait_for_element
Wait for a UI element to appear on iOS simulator before interacting with it. Polls until the element is found or timeout occurs, ensuring screen readiness for automated testing.
Instructions
Wait for a UI element to appear on iOS simulator. Polls until found or timeout. Requires IDB (brew install idb-companion). Use this FIRST after navigation to ensure screen is ready, then use find_element + tap.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "ios_wait_for_element"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| label | No | Exact accessibility label match | |
| labelContains | No | Partial label match (case-insensitive) | |
| value | No | Exact accessibility value match | |
| valueContains | No | Partial value match (case-insensitive) | |
| type | No | Element type to match (e.g., 'Button', 'TextField') | |
| index | No | If multiple elements match, select the nth one (0-indexed, default: 0) | |
| timeoutMs | No | Maximum time to wait in milliseconds (default: 10000) | |
| pollIntervalMs | No | Time between polls in milliseconds (default: 500) | |
| udid | No | Optional simulator UDID. Uses booted simulator if not specified. |