Definition and Usage
This command sets the option value for a drop-down list on a web page. It allows you to select an option from a dropdown menu either by text content or by index position.
Parameter Values
Input parameters
Parameter | Description | Possible Values | Required | Options / Notes |
Web page | Select a variable that contains the web page to work with | Any web page variable | Yes | Must be a previously opened web page |
Element | Select or capture an element to operate on | Any dropdown element | Yes | Use the Capture button to select the dropdown element |
Select by | Choose to select option by text or index | Text, Index | Yes | Determines which method to use for selection |
Option text | Enter the text to select the option | Any text string | Yes (if Select by: Text) | The visible text of the dropdown option |
Match by | Select option text match mode | Fuzzy matches, Exactly matches, RegEx matches | Yes (if Select by: Text) | Determines how text matching is performed |
Option index | Enter the index value for the option | Integer (0, 1, 2...) | Yes (if Select by: Index) | Index is zero-based (first option is 0) |
Advanced settings
Parameter | Description | Possible Values | Required | Options / Notes |
Wait after execution (s) | Wait for a specified number of seconds after the action is executed | Numeric value (seconds) | No | Default is 1 second |
Element timeout (s) | Wait time for element to appear | Numeric value (seconds) | No | Default is 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 doesn't produce any variables.
Using Variables in Conditions
You can use variables in any parameter field where the {x} icon appears. This allows you to dynamically set values such as option text or index based on previously stored variables. For example, you might use a variable to store the option text that needs to be selected based on earlier workflow steps.
Notes
The dropdown element must be a proper select element or a dropdown component that can be interacted with.
When using "Select by: Text" with "Fuzzy matches", the command will select the first option containing the specified text.
When using "Select by: Index", remember that indexing starts at 0, so the first option is at index 0.
If the specified option text or index doesn't exist, the command will result in an error.
The element must be visible and interactive on the page when the command executes.