Overview
TheSELECT step allows you to select options from native HTML select elements (dropdowns). It supports selecting by value, visible text, or index, and provides helpful error messages with available options when selection fails.
Parameters
Select element selector. Must target a native HTML select element.
How to select the option:
value- Select by option value attributetext- Select by visible option textindex- Select by option index (0-based)
The option value attribute (used when selectionMethod is “value”)
The visible option text (used when selectionMethod is “text”)
The option index, starting from 0 (used when selectionMethod is “index”)
Wait for the change event after selection
Behavior
- Element Location: Finds the select element using the selector
- Element Validation: Validates it’s a native SELECT element
- Option Finding: Locates the option based on the selection method
- Selection: Updates the selected option
- Event Firing: Fires change and input events
- Change Wait: Optionally waits for change event processing
Common Use Cases
- Selecting countries, states, or cities
- Choosing product options (size, color, etc.)
- Setting sort order or filters
- Selecting dates (month/year dropdowns)
- Choosing from predefined lists
Error Handling
The step will fail if:- The element cannot be found
- The element is not a native SELECT element
- The specified option doesn’t exist
- The select element is disabled

