Automate iOS Simulator interactions with AXe
mainAXe is a CLI tool designed for automating iOS Simulator interactions. It supports touch gestures, text input, slider adjustments, UI inspection, and batching multi-step workflows.
Core Workflow:
- Identify Target: Use
axe list-simulatorsto find the simulator UDID. - Inspect UI: Use
axe describe-ui --udid <UDID>to discover element IDs, labels, and coordinates. - Interact: Use commands like
tap,swipe,type, orsliderusing the discovered selectors or coordinates. - Verify: Use
describe-uiorscreenshotto confirm the app state changed as expected.