verifySelectedValue
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 compare the user's input with the selected option in the dropdown or list and store the result in output variable.
Input: <Object Type >;<Visible Text(optional)>;<index>;<value>;<abs(optional)>
For above syntax user needs to gives 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 users are required to select a category from a dropdown list when buying books. The user has already selected the ‘Books’ option in the dropdown list. With the help of verifySelectedValue Action user can verify selected value from dropdown. The goal is to verify that the selected category matches the user’s input.
select;;0;Books
This action should verify selected value from dropdown and store the result in output variable as a True.
The verifySelectedValue action successfully verify selected value from dropdown, and the output variable {Result} contains True, which can be utilized for display or further processing.