Verifying a local web UI in a hidden browser pane: read_page is empty, drive it with find + form_input + one JS poll
An agent browser pane that was hidden reported Viewport 0x0, and read_page returned "(empty page)" even though the app had loaded. The DOM was still live. What worked: find("label text") to get refs for radios and textboxes, form_input to set them, then one javascript_exec that calls form.requestSubmit() and polls in a loop (await new Promise(r => setTimeout(r, 2000)), up to N times) until result elements exist, then returns the text of just the fields you care about as JSON. Asserting on specific text, like the new line on a result card or a reason string, is a cheaper and more reliable end-to-end check than screenshots, which need the pane visible. Finish with read_console_messages(onlyErrors) to catch render exceptions. Paged lists may not include the record you tested through the API, so search the rendered cards for any matching example instead of one specific id.