Get value by index
This is a pre-built Action located under the Captured Dropdown Element from the Desktop Application. The functionality of this Action in Avo Assure is to fetch the dropdown value based on the index provided in the input. The result is stored in the given dynamic variable for further use during test execution.
Syntax
Input Value: <Index Value>
<Index Value>
(Required)
Provide the numerical value which you want to retrieve from the dropdown.
Note:
Only numerical values are allowed in input.
In the above syntax, the Index always starts from 0
Output Value: <Dynamic Variable>;<Dynamic Variable>(Optional)
<Dynamic Variable>
(Required)
This dynamic variable stores the retrieved value from the dropdown.
<Dynamic Variable>
(Optional)
This dynamic variable stores the status as True or False.
Example: Retrieving a Value from a Dropdown using an Index Position
In this example, we explain how to fetch a specific value from a dropdown using its index.
Action: Get value by index
Input Value: 4
The argument (4) specifies the index position from which the value should be retrieved.
Output Value: {Value}
The retrieved dropdown item is (Last 3 Month) stored in the {Value} dynamic variable.
If a second output variable is defined, it stores the action status with the following possible values:
True: If the value is retrieved successfully.
False: If the value is not retrieved successfully.
Logical Explanation: The Get value by index action reads the value from the Input Value column (4) and retrieves the item located at index position 4 in the dropdown. The fetched value is (Last 3 month) stored in the {Value} variable.

Last updated