Use a select list
The primary way to interact with a dropdown menu is the Select list step. When that doesn't work (for example, on custom dropdowns that don't use a real <select> element), there are two fallback patterns.
Use the Select list step
Open the step finder, search for select, and add the Select list step.
- Click Select and choose the dropdown.
- Set
Optionto the value you want to select, or click Insert data to pass a value in from earlier steps.
Type the value with Click element and Enter text
If the dropdown is searchable (it filters as you type), click into it and type the option you want.
- Add a Go to page step (or another step that loads the page).
- Add a Click element step and select the dropdown.
- Add an Enter text step.
- In
Text, enter the option you want.
Navigate with Click element and Press key(s)
If the dropdown isn't searchable, open it with a click and use arrow keys to pick an option.
- Add a Go to page step (or another step that loads the page).
- Add a Click element step and select the dropdown to open it.
- Add a Press key(s) step.
- Record the keys needed to reach the right option. For example, Arrow down, Arrow down, Enter to select the second option.
Use a select list with JavaScript
For cases where none of the steps above fit, the Write javascript step can set the value directly.