The DropDown activity helps you retrieve specified values from a list during runtime
in a desktop-based application.
Technical Reference
Input |
Action_by: Choose the action for selecting a value from the drop-down list. Text: Retrieves the “Text” value from the drop-down list. Index: Retrieves the “Numeric” value from the drop-down list. "By default, it is set to 'Text'. |
|
DelayAfter: It assists the user to add a delay before initiating subsequent activities. |
||
DelayBefore: It assists the user in adding a delay before starting the execution of the activities. |
||
Execute_by: Gets auto-filled once the "Active Application" is selected. This contains the set of attributes for the specific spied element. |
||
Set_Value: This parameter allows you to specify the value to be selected from the drop-down list. It accepts the 'String' data type. |
||
WaitTime: It enables the user to introduce a delay before initiating subsequent activities. The delay is specified in milliseconds.
By default, it is set to 10000 milliseconds. Leaving the option blank will result in no delay being applied. |
||
Misc |
DisplayName: Displays the name of the activity. The activity name can be customized, which aids in troubleshooting. |
|
SkipOnError: Specify the "Boolean" value as "True" or "False."
True: Continue executing the workflow regardless of any errors thrown. False: Halt the workflow if it encounters any errors. None: If the option is left blank, the activity will, by default, behave as if "False" were chosen. |
||
Version: It indicates the version of the feature being used. |
||
Output |
Result: It provides the ability to view the execution status of the activity. It returns values in "Boolean."
True: Indicates that the activity has been executed successfully without any errors. False: Indicates that the activity has been unsuccessful due to an unexpected error being thrown. |
* Represents mandatory fields to execute the workflow
Here's an example of how the 'Dropdown' function works in the workflow –
The following is a simple example that demonstrates how to make a selection from
a dropdown menu in a 'Notepad' application.
1. Drag and drop the "Drop-down" activity onto the designer pane and set it as
the “Start Node.”
a. Double-click the activity.
b. Here we are choosing the "Select Element" option.
c. Click here to know “Link from Reusable Objects.”
d. Select the element where we need to set the value from drop-down. Here, I am
selecting the element “View” from the 'Notepad' app.
e. Once you have chosen the "Element," the attributes will be stored in the
"Spy" window, along with an "image" of the element.
f. If you wish to add or remove any attributes, you can edit the "Attributes Editor."
In this case, we are not making any changes in the “Editor.”
g. Once you click on the "Save" button, the elements will be stored in the activity
window.
i. Choose the value to be set in the dropdown list. Here, I am selecting the
'Status bar' option.
h. Select the 'Action_by' parameter based on the option chosen from the drop-
down menu. I haven't chosen any values as I'm sticking with the default value of
'text' since the chosen value from the drop-down menu is text.
2. Execute the workflow to view the output.