The UI Tree Inspector shows exactly which on-screen elements VibeView sees, and lets you inspect any one of them in detail. Use it when a step can’t find an element, when an element isn’t being picked up, or when you want to confirm the tree your test will run against matches what’s on screen right now.
Opening the inspector
The inspector is available whenever a session is live. Open it from the UI tree panel switch in the Device tab. It opens beside the tools panel, between the device and the tabs, so the device and the tree stay visible together; close it with the X at its top. The panel closes automatically when the session ends.
Reading the panel heading
The panel’s heading tells you how fresh the tree behind what you’re looking at is, as a one-word state next to the title:
- current (green) — nothing on screen has changed since the tree was read.
- stale (amber) — your last action invalidated the tree and a fresh one hasn’t landed yet.
- refreshing (blue) — you clicked Refresh and a fresh tree is being fetched from the device.
- empty (gray) — no snapshot has been captured yet; the panel shows “No snapshot yet”.
Below the title, a line of detail shows how many elements the tree holds and when it was read (for example, “updated 12 s ago”). When the snapshot came from a fast, reduced source, a short note under that line says so — the tree is current but may omit some nodes or labels, and a manual refresh fetches a richer one. On iOS the richer tree is read from the app the session was started with, so a session started without an app (the home screen, or a system app such as Settings) only has the reduced tree; the note says so instead of suggesting a refresh.
Selecting an element and reading its properties
Click any row in the tree to select it. The device stream draws a coral box around the selected element, with its reference (@e9) labelled just above it — click the row again, or press Escape, to clear the selection. A Properties section under the list then shows what the system knows about that element: its type, its visible text, its accessibility id, its position and size on screen, and any other field the device reports. Only the fields that element actually has are shown.
From the Properties section, Copy selector copies the identifier a test would use to find that element again, so you can check it against what you expect or paste it elsewhere.
- Hover a tree row (without clicking) — the coral box follows your pointer the same way, so you can scan the tree without committing to a selection.
Manual refresh
If you suspect the cached tree is wrong (the system thinks the screen settled but it hasn’t, or an animation finished after settle), click the refresh button in the panel’s heading. This invalidates the cache and fetches a fresh tree from the device. The heading reads refreshing, then current when the new tree lands.
The resulting snapshot is marked as manually refreshed so you can tell it apart from automatic ones.
Platform notes
- iOS — full field set: text, accessibility id, type, position and size, plus placeholder and value where applicable.
- Android — the device’s accessibility tree may not carry every field. Missing fields are simply omitted from the Properties section. The inspector still functions; you may just have less detail to work with.
- TV devices — the inspector also works on Apple TV, Android TV, and Roku sessions, showing the elements your d-pad navigation moves focus between.
- Apple TV and Android TV — the element that holds focus is marked focused in the list and shows Focused: Yes in its Properties. A Focused line above the list names it; click that line to select it. A TV app whose focus the device’s accessibility layer can’t see has no focused element in the tree.
When this is the wrong tool
The inspector is observational. It does not change idle detection, fix selectors, or rewrite test steps. If a step keeps finding the wrong element, the inspector helps you describe the problem precisely.