capture-ui-locators
Identify and extract UI element locators for mobile apps, enabling efficient automation scripting and element interaction in Appium-based testing workflows.
Instructions
Capture all UI elements and their locators for future use
Input Schema
Name | Required | Description | Default |
---|---|---|---|
elementType | No | Filter elements by type (e.g., android.widget.Button) | |
refreshSource | No | Whether to refresh page source before capture | |
saveToFile | No | Whether to save the locators to a file |
Input Schema (JSON Schema)
{
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"properties": {
"elementType": {
"description": "Filter elements by type (e.g., android.widget.Button)",
"type": "string"
},
"refreshSource": {
"description": "Whether to refresh page source before capture",
"type": "boolean"
},
"saveToFile": {
"description": "Whether to save the locators to a file",
"type": "boolean"
}
},
"type": "object"
}