Class ComponentSnapshot
java.lang.Object
org.vaadin.addons.dramafinder.agent.ComponentSnapshot
Produces a compact, human- and agent-readable summary of the Vaadin
components currently present on a page.
Instead of dumping a full accessibility tree (which is large and noisy for
Vaadin's shadow DOM and teleported overlays), this walks the light DOM for
vaadin-* elements and emits one terse line per meaningful component,
e.g.:
vaadin-grid — 12 rows, columns [Date, Amount, Status], 1 selected vaadin-combo-box "Category" = "Travel" notification: "Saved" vaadin-dialog-overlay open — "Confirm"The result is orders of magnitude smaller than an accessibility-tree dump and captures exactly the state an agent needs to reason about the UI. It is also embedded in failure reports written by
AgentReporting.-
Method Summary
-
Method Details
-
capture
Capture a compact snapshot of all meaningful Vaadin components on the page.- Parameters:
page- the Playwright page to inspect- Returns:
- a multi-line summary, one component per line (empty string when no components are found)
-