Get value by index
Last updated
Was this helpful?
Last updated
Was this helpful?
The Click element Action in the Avo Assure is found under the captured dropdown from Desktop Application Element. It instructs the Avo Assure Client to fetch the dropdown value using the index value given in the input and save the status in output variable.
Input: <Index Value>
Note: Only numerical values are allowed in the input. The index starts with “1,” which is the first value from the list.
Output: <Dynamic Variable>;<Dynamic Variable>(Optional)
In this scenario, a desktop banking application is being tested where the account for transferring money is selected. The dropdown includes options: Canara Bank9089, India Bank6754, and Bharat Bank7876. Using the "Get Value by Index" action, the value at the specified index (e.g., 3) is retrieved. For index 3, the dropdown should return Bharat Bank7876, confirming that the correct value is fetched based on the input index.
3
The Get value by index Action should fetch the 3rd index value as “Bharat Bank*7876” from the dropdown.
The result of the Get value by index Action is get the value and stored in the {Value} output variable as {“Bharat Bank*7876”}, which can be utilized for display or other purposes.