device_wait_for_element
Poll the UI until an element with the given text or resource-id appears, or timeout. Returns element coordinates in PHYSICAL pixels (ready for device_tap).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | No | Visible text or content-desc to wait for | |
| udid | Yes | Device serial number (UDID) | |
| timeout | No | Max wait time in ms (default: 10000) | |
| interval | No | Poll interval in ms (default: 1000) | |
| resourceId | No | Resource ID to wait for (e.g. com.android.settings:id/switch_widget) |