Get Selected Value from Dropdown
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 retrieve the selected value from the dropdown or list specified in the input and store the result in the output variable.
Input: <Object Type>;<Visible Text(optional)>;<index>;<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 an e-commerce application where the user is required to select a shipping method from a dropdown list during checkout. The goal of the test is to verify that the correct shipping method has been selected from the dropdown. With the help of the Get Selected Value from Dropdown action, the user can retrieve the selected value from the dropdown.
Input:
select;;0
This action should retrieve the selected value from dropdown and store the result in Output variable as Cash on Delivery.
The Get Selected Value from Dropdown action successfully retrieves the selected value from the dropdown, and the output variable {Result} contains Cash on Delivery, can be utilized for display or further processing.