pilot_select_option
Select an option from a dropdown, combobox, or list by matching value, label, or visible text. Returns confirmation of the selected value and element ref.
Instructions
Select an option from a dropdown element by value, label, or visible text. Use when the user wants to choose a dropdown option, select from a combobox, or pick from a list. Note: clicking an in pilot_snapshot is auto-routed here.
Parameters:
ref: The element reference from snapshot (e.g., "@e5") or a CSS selector
value: The option's value attribute, label, or visible text to match
Returns: Confirmation with the selected value and element ref.
Errors:
"No option matched": The value does not match any option. Check the exact option text or value attribute via pilot_page_html.
"Element not found": The ref is stale or does not point to a element. Run pilot_snapshot.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ref | Yes | Select element ref (@e3) or CSS selector | |
| value | Yes | Option value, label, or text to select |