appium_wait_for
Polls until a mobile locator is present or gone, replacing repeated find-element retries after navigation.
Instructions
Poll until a locator is present (or gone). Use instead of retrying find_element after navigation.
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": {
"locator": "<locator>"
},
"name": "appium_wait_for"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| until | No | Default present. | |
| locator | Yes | id=..., desc=..., text=..., xpath=..., uia=... or pred=... | |
| sessionId | No | Session ID; defaults to the active session. | |
| timeoutSec | No | Default 15. |