ios_locators_for
Generate ranked locator strategies for one element. Counterpart of device_locators_for. Pass either coordinates (x, y — picks the SMALLEST element containing the point) OR a label substring. Returns accessibility id, predicate string, class chain and XPath, best first, each with a note on why it ranks where it does. Use these to fill page-object selectors when generating test scripts instead of re-deriving them. Requires an active iOS automation session.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | No | X of the element in screen points (use with y) | |
| y | No | Y of the element in screen points (use with x) | |
| udid | Yes | iOS device UDID | |
| label | No | Label / name substring to look up instead of coordinates |