Get Value by Index
This ‘Get Value by Index’ is pre-built Action located under the Dropdown captured Elemen. It instructs Avo Assure Client to fetch the value from a dropdown based on the index number of an item which is specified in the Input Value and then stores the value fetched in the output variable.
Syntax
Input: Index
Output: <Dynamic Variable>;<Dynamic Variable>(Optional)

Use case/Example

Scenario: Dropdown Selection by Index
In this scenario, you are testing a feature where the user selects a category from a dropdown menu by providing an index number. This index represents the position of the desired category in the list. The application uses the Get Value by Index action to fetch the category corresponding to the given index. This test ensures that the application accurately retrieves and displays the correct category, validating the functionality and accuracy of the dropdown selection
Input
5
Expected Result
Based on the input value 5, the action should select the sixth item from top as the index number starts from 0.
Output
The action performs successfully and output variable {Status} contains ‘Motors’.
Last updated
Was this helpful?