browser_pick
POST /api/execute/browser_pickSelects 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
| Name | Type | Required | Description |
|---|---|---|---|
| context_id | string | yes | Active workspace identifier hosting the dropdown or combobox control. |
| selector | string | yes | Dropdown locator via OwlMark token, CSS syntax, pixel coordinates, or natural-language label. |
| value | string | yes | Option value attribute or visible display text to choose from the available list. |
| verification_level | string | no | Audit 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")