wait_for_element
Wait for a mobile UI element to appear by polling every second, with configurable timeout, to ensure the app reaches the expected state before continuing.
Instructions
Wait for a UI element to appear (polls every 1s).
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"deviceId": "<deviceId>",
"platform": "<platform>",
"selector": "<selector>",
"strategy": "<strategy>"
},
"name": "wait_for_element"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| timeout | No | Timeout in ms (default 20000) | |
| deviceId | Yes | ||
| platform | Yes | ||
| selector | Yes | ||
| strategy | Yes |