Skip to main content

Module browser_locate

Module browser_locate 

Source
Expand description

Browser actions locate and click_at: the visual fallback for a region the page’s accessibility tree can’t describe (a canvas UI, the picture of a button, a control with no accessible name). The agent looks at a screenshot and names a point; the host finds what a click there would land on and gives it a reference. click_at is that and then a click on the reference, so a committing click still asks the person, the click must land on the element, and a frame off the pane’s allowed sites is refused (docs/specs/SPEC_BROWSER_PANE_FORMS_IN_FRAMES_AND_VISUAL_FALLBACK_2026_10_16.md §4.6). There is no type_at: to type, locate the field and fill its reference, so the secret guard always sees it.

Structs§

Located 🔒
What a locate found.

Functions§

coordinate 🔒
x or y, a position in the screenshot.
found_text 🔒
The element and where it is, as the agent reads it.
locate 🔒
Ask the host what is at the point.
located 🔒
run_click_at 🔒
run_locate 🔒