Get Text From Object
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 text of the object and save the result in the given output variable.
Input: <Object Type>;<VisibleText(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 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>;<Dynamic Variable>(Optional)
A user is testing a shopping cart page on an e-commerce website. The Avo Assure needs to verify the total price displayed at the bottom of the cart. The "Get Text From Object" Action is used to retrieve the total price text from the cart summary and save it in a variable for validation.
table;;1
The Get Text From Object Action needs to retrieve the text from the card Element and save it in the Output Variable.
The Get Text From Object Action is retrieving the text that extracted from the object and save it in the {result} output variable as 560, which can be utilized for display or other purposes.