peach find
The unified finder. A bare argument matches node text (findByText); flag forms match by testID, role, component type, or predicate. —pressable and —visible list every tappable or visible node, and —interactive-targets (alias —actions) ranks visible+pressable nodes and prints a ready-to-run peach do tap-... command per row, so the next tap is one copy away. Use —verbose for full node JSON and —json to script.
terminal
Options
| flag | description |
|---|---|
--text <text> | match node text content (same as bare positional) |
--testid <id> | match node testID or id exactly |
--role <role> | match accessibilityRole |
--type <type> | match engine node type (view, text, …), not a React component name |
--pressable | list all tappable nodes. an empty result is not proof a screen has no affordance: it lists registered touch responders, and a styled() view whose onPress comes from the call site is tappable without appearing here |
--visible | list all visible (non-zero) nodes |
--interactive-targets, --actions | ranked tappable nodes, each with a ready-to-run tap command |
--verbose, --dump | emit full node JSON for each result |
--json | emit structured JSON |
Examples
terminal