Get Value by Index
Last updated
Was this helpful?
Last updated
Was this helpful?
This is pre-built Action located under the @Custom Element Name. It instructs the Avo Assure Client to get the value from the dropdown or list specified in the input provided by the index and save the result in the output.
Input: <Object Type>;<Visible Text(optional)>;<index>;<index value>;<abs (optional)>
For above syntax user needs to give specific Object type, visible text of the object (optional) along with element index of the object, the value which needs to be set on the object and abs.
Note: if for last argument abs is defined then the Action must be executed with absolute preformation with the specified visible text in the input.
Output: <Dynamic Variable>(Optional);<Dynamic Variable>(Optional)
In this scenario, the user is testing a travel booking application. The user wants to get selected destination city from a dropdown list while booking a flight. The dropdown contains a list of cities, and the user needs to ensure that the ninth option in the list is correct. With the help of the ‘Get Value by Index’ action, the user can get the value from the specified index.
select;;0;9
This action should get the value from the index and store the result in the output variable as Paris.
The Get Value by Index action successfully gets the value from the dropdown using the index, and the output variable {Result} contains Paris, which can be utilized for display or further processing.