Select an option in a native dropdown
Legacy step that picks an option in a native dropdown. Use Click in a web test instead.
Deprecated. This step no longer appears in the step palette. Existing tests that use it keep running. For new tests, use Click to open the dropdown and click the option, which also works for custom (non-native) dropdowns.
Pick an option in a native dropdown, the browser's built-in list (an HTML <select> element), by its visible text, its position, or one of its attributes.
Parameters
| Parameter | Required | Description |
|---|---|---|
| Target element | Yes, unless a manual selector is set | Natural-language description of the select element. |
| Manual selector | No | XPath or CSS selector, used when AI is disabled or as the saved selector. |
| Select option by | Yes | visible_text (default), index, or attribute. |
| Value | When by is visible_text | The option's visible text. |
| Index | When by is index | The option's position, starting at 0. |
| Attribute name and value | When by is attribute | The HTML attribute to match, for example value = FR. |
| AI usage | No | inherit (default, follows the test strategy), smart, or always. |
| Ignore error on this step | No | The run continues with the next step if this one fails. Default: off. |
Results and metrics
- Timing: start, end, and duration (in seconds) recorded in the step result.
- Status: failed if the element or the requested option cannot be found.
- Screenshot: captured after the selection.
What's next?
Last updated on