UIHelper.observe
Inspect elements with short references and selector suggestions.
js
ui.observe(options?)Arguments
| Argument | Type | Meaning |
|---|---|---|
options | object | Optional {limit:300, includeContainers:false, includeHidden:false, screenshot:false}; limit 1..1000. |
Returns
Observation object: observationId, bundleId, screen, elements, coverage flags and optional screenshotURL.
Example
js
const state = UIHelper.observe({limit: 100});
console.log(JSON.stringify(state.elements));Notes
Refs such as e1 belong to that observation, can expire early, and must not be hard-coded into saved scripts. Use verified selectors.