generate-element-locators
Create multiple locator types for mobile app elements to enhance test automation reliability and flexibility in Appium-based testing.
Instructions
Generate multiple types of locators for an element
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": "generate-element-locators"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| selector | Yes | Base selector to find the element (e.g., xpath) | |
| strategy | No | Base selector strategy: xpath, id, accessibility id, class name (default: xpath) |