Definition and Usage
This command retrieves either the selected option or all options from a drop-down list in a window form. It allows you to extract and store drop-down list values for further processing in your automation workflow.
Parameter Values
Input parameters
Parameter | Description | Possible Values | Required | Options / Notes |
Element | Select or capture an element to operate on |
| Yes | Use the Capture button to select the drop-down list element |
Get | Specify the options to get | Selected option, All options | Yes | Determines whether to retrieve only the selected item or all available options |
Save items as | Store the option text in a new variable |
| Yes | Variable name to store the retrieved drop-down list values |
Advanced settings
Parameter | Description | Possible Values | Required | Options / Notes |
Element timeout (s) | Wait time for element to appear (seconds) |
| No | Default: 20 seconds |
Error handling
Parameter Name | Description |
Throw error & stop | When an error occurs, the action will trigger an error and stop the execution of the entire app. |
Retry command | If an error occurs, the action will retry the command in an attempt to resolve the issue and continue the process. |
Ignore error & continue | When an error occurs, the action will be ignored, and the workflow will continue without interruption. |
Variables produced
This action produces a variable containing the drop-down list values based on your selection criteria. If "Selected option" is chosen, it will contain a single text value; if "All options" is chosen, it will contain a list of all available options in the drop-down.
Using Variables in Conditions
You can use the output variable in subsequent actions by referencing it with the {x} syntax. This is particularly useful when you need to:
Make decisions based on the selected drop-down value
Process or manipulate the retrieved options
Pass the values to other commands for further automation
Notes
The element must be a valid drop-down list (combobox or select element) for this command to work properly.
When retrieving "All options", the output will be stored as a list that can be iterated through in loop actions.
Ensure the drop-down element is visible and accessible when the command executes to avoid timeout errors.
The command will wait for the specified timeout period for the element to appear before reporting an error.