Wait until text appears on screen
devilge_wait_for_textPoll the Android UI dump until a node with specified text appears. Returns match status and node details without throwing errors.
Instructions
Polls the UI dump until a node whose text or contentDescription matches appears, or the timeout elapses. Returns {matched, attempts, elapsedMs, matchedNode?}. Never throws — the caller branches on matched.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | Text to wait for. | |
| serial | No | Device serial. Defaults to DEVILGE_DEFAULT_DEVICE_SERIAL or the only attached device. | |
| contains | No | Substring match. Default true. | |
| timeoutMs | No | Max wait in ms (500..60000). Default 10000. |