DropDown

Estimated reading: 3 minutes 3339 views

Drop Down

The DropDown activity helps you retrieve specified values from a list during runtime in a desktop-based application.

Properties

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. The delay duration here is in milliseconds. By default, it is set to “300” milliseconds. When the option is left blank, the delay will not be considered.

DelayBefore: It assists the user in adding a delay before starting the execution of the activities. The delay duration here is in milliseconds. By default, it is set to “200” milliseconds. When the option is left blank, the delay will not be considered.

ExecuteBy: 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.

RESULT

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

Example

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.
h. Choose the value to be set in the dropdown list. Here, I am selecting the ‘Status bar’ option.
i. 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.

Share this Doc

DropDown

Or copy link

CONTENTS