element-exists
Verify the presence of a specific element on a mobile app page using a defined selector and strategy, enabling efficient element validation during automation with Appium.
Instructions
Check if an element exists on the current page
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) |
Input Schema (JSON Schema)
{
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"properties": {
"selector": {
"description": "Element selector (e.g., xpath, id)",
"type": "string"
},
"strategy": {
"description": "Selector strategy: xpath, id, accessibility id, class name (default: xpath)",
"type": "string"
}
},
"required": [
"selector"
],
"type": "object"
}