Set Dropdown List Item
Description
This activity selects/clears a specified item in the identified UI dropdown list element.
This activity might require an active display and an unlocked user session to successfully simulate interactions with UI components. For more detailed information, please refer to the relevant section in the Desktop Automation Notes.
Properties
Input
-
Automation Mode – Defines the method used to automate UI elements through hardware drivers or the Send Windows Messages API. The default option is Drivers.
Mode Description Drivers Leverages hardware drivers to simulate interactions directly with UI components. Requires an active display and unlocked user session. Window Messages Utilizes the Send Windows Messages API for automation, eliminating the need for an active display or unlocked session.
Note: This mode is compatible only with certain types of applications that support window message-based automation and may not work with others, such as WPF applications. -
Control Type - The operation to perform.
Operation | Description |
---|---|
Select | Selects the specified Item from the dropdown |
Clear | Deselects the specified Item from the dropdown |
-
Delay After – Delay time, in milliseconds, after executing the activity. By default, it is set to 300 milliseconds.
-
Delay Before – Delay time, in milliseconds, before the activity begins execution. By default, it is set to 200 milliseconds.
-
Item - Specify the Item to select/deselect based on the item value in the dropdown list
-
Index - Specify the Item to select/deselect based on the item index in the dropdown list
-
Window Title – Holds the title of the window identified through Window Selector. You can also type in the title to identify the window for automation.
-
Window Instance - Holds the window instance identified through Window Selector. You can also type in the window instance for automation.
-
Search Parameters – Holds the information of the UI element identified through Element Selector.
Misc
-
DisplayName – The display name of the activity.
-
Private – If selected, the variables and argument values will no longer be logged at the Verbose level.
Optional
- Continue On Error – It Specifies whether the automation should continue even when the activity throws an error. If True, the activity continues without throwing any exceptions. If False, the activity throws an exception. The default value is False.
Note: If this activity is present inside the Try-Catch block, and the value of this property is True, no error would be caught.
Example
Download Example