Commit c24a63e
committed
feat(cli): add --ui flag to inspect command for browser-based tree explorer
The terminal tree from inspect is useful for quick lookups but hard to
navigate on complex screens with deep hierarchies. When a screen has
100+ nodes, scrolling through a flat terminal dump to find the right
element is slow.
The --ui flag opens a browser at localhost:9325 with a two-panel UI:
the left panel shows the collapsible accessibility tree, the right panel
shows the selected node's properties and ready-to-use locator code that
can be copied to the clipboard with one click.
Auto-refresh polls the device on a configurable interval (1s/2s/5s/10s)
so the tree stays live as you navigate the app — no need to re-run the
command for each screen. A manual Refresh button is always available when
auto-refresh is off.1 parent 76ce74e commit c24a63e
2 files changed
Lines changed: 446 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| 17 | + | |
17 | 18 | | |
18 | 19 | | |
19 | 20 | | |
| |||
256 | 257 | | |
257 | 258 | | |
258 | 259 | | |
259 | | - | |
260 | | - | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
261 | 267 | | |
262 | 268 | | |
263 | 269 | | |
| |||
0 commit comments