browser_pick

Summary: Browser PickPOST /api/execute/browser_pick

Selects a matching option from either a native HTML select element or a custom JavaScript combobox widget. After locating the control via OwlMark handle, CSS expression, viewport coordinates, or natural-language label, the engine inspects its tag name and ARIA role attributes to choose the selection strategy. For standard HTML select nodes, it matches the requested string against option value attributes or visible text, updates selectedIndex, and dispatches native input and change events. For composite framework dropdowns such as Select2 or React-Select, the handler clicks the trigger to open the floating menu, locates the matching item in the overlay, and clicks it. Post-action verification confirms the selection state persisted and the popover closed.

Parameters

NameTypeRequiredDescription
context_idstringyesActive workspace identifier hosting the dropdown or combobox control.
selectorstringyesDropdown locator via OwlMark token, CSS syntax, pixel coordinates, or natural-language label.
valuestringyesOption value attribute or visible display text to choose from the available list.
verification_levelstringnoAudit intensity verifying the chosen option became active, ranging from none to strict.

Usage

result = await browser.pick(context_id=context_id, selector="#element-id", value="value")

See Also