browser_select_option
Sets the chosen option on an HTML select, including hidden selects, and verifies the retained selection after synthetic input/change events.
Instructions
Set an option on one ref/selector HTML select, including hidden selects, via synthetic input/change (events_trusted=false). Disabled/inert targets fail. Verifies retained selection only.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| nth | No | Selector only: zero-based DOM index, AX tree order for role. | |
| ref | No | ||
| name | No | role only: exact AX name; empty allowed. | |
| frame | No | Child frame: at least one of url/title/path. url/title exact; path=unique nested CSS iframe steps (e.g. ["#frame"]); exclusive with frame_id. | |
| index | No | ||
| label | No | ||
| value | No | Exactly one value/label/index; strings match exactly, index is zero-based. | |
| observe | No | Read this explicit control after the action within its remaining budget; observation is separate from delivery. No assertion or automatic replay. | |
| frame_id | No | Selector frame; default main. | |
| selector | No | Query by selector_type; role example: selector="link", name="Claim". | |
| tab_handle | Yes | ||
| timeout_ms | No | Total preparation/dispatch/verification and optional observation budget. | |
| dialog_policy | No | accept/dismiss auto-handle dialogs and return their messages. | ask |
| selector_type | No | Default css. label: exact associated HTML label, whitespace normalized. placeholder: exact attribute. |