element-exists
Check if a mobile app element exists on the current page using selectors like xpath or id to verify element presence during automation testing.
Instructions
Check if an element exists on the current page
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": {
"selector": "<selector>"
},
"name": "element-exists"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| selector | Yes | Element selector (e.g., xpath, id) | |
| strategy | No | Selector strategy: xpath, id, accessibility id, class name (default: xpath) |