select_option
Select an option from a dropdown using CSS selector or @eN reference. Identify the option by its value, label, or index, and get the resulting page state.
Instructions
Select an option from a dropdown element. Identify the target dropdown via CSS selector or @eN ref, then specify which option to select by its value attribute, visible label text, or zero-based index. Returns post-action page_state showing any page changes triggered by the selection (e.g. dependent dropdowns updating).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| index | No | Zero-based index of the <option> to select (0 = first option). Use when value/label are unknown. | |
| label | No | The visible text of the <option> to select (e.g. "United States", "Medium"). Use when you know the display text. | |
| selector | Yes | CSS selector or @eN ref targeting the <select> element (e.g. "@e4", "select#country", "select[name='size']"). | |
| value | No | The value attribute of the <option> to select (e.g. "us", "medium"). Use when you know the option's value. |