verifyExists
This is a pre-built Action located under the @Custom Element. The functionality of this Action in Avo Assure is to verify whether the specified object is present on the web page. The result is stored in the given dynamic variable for further use during test execution.
The verifyExists action works only when the VerifyExists action is executed in a preceding step.
Syntax
Input Value: <ObjectType>;<VisibleText(optional)>;<Index>;<abs(optional)>
<ObjectType> (Required)
Provide the object type you want to verify for present in the application.
<VisibleText> (Optional)
Provide the visible text associated with the object.
<Index> (Required)
Provide the position of the object you want to identify based on its sequence in the application. Note: Index start from 0.
<abs> (Optional)
Provide the absolute XPath of the object you want to identify for this operation.
Note:
If the last argument abs is defined, the action executes using absolute identification based on the specified absolute XPath provided in the input.
To skip an optional input value, use an extra semicolon (;).
Output Value: <Dynamic Variable>(optional);<Dynamic Variable>(optional)
<Dynamic Variable>(optional);<Dynamic Variable>(optional)
Both dynamic variable stores the status as True or False.
Example 1: Verifying Existence of an Object
In this example, we are explaining how to verify that a specified object exist on the application interface.
Action: verifyExists
Input Value: Button;;0
The first argument (Button) specifies the object type to be identified.
The second argument is left blank to skip an optional value.
The third argument (0) specifies the index of the object when multiple matching elements are present.
Output Value: {Status}
The result of the verification operation is stored in the {Status} dynamic variable with the following possible values:
True: If the specified object exist on the application interface.
False: If the specified object does not exists.
Logical Explanation: The verifyExists action reads the identification details from the Input Value column (Button;;0). The action searches for the specified object using the object type and index. If the object is found on the application interface, the verification result is stored as (True) in the {Status} variable.

Example 2: Verifying Existence of an Object using Optional Parameter
In this example, we are explaining how to verify that a specified object exist on the application interface using optional parameter.
Action: verifyExists
Input Value: Button;Delete;0
The first argument (Button) specifies the object type to be identified.
The second argument (Delete) specifies the visible text associated with the object.
The third argument (0) specifies the index of the object when multiple matching elements are present.
Output Value: {Status}
The result of the verification operation is stored in the {Status} dynamic variable with the following possible values:
True: If the specified object exist on the application interface.
False: If the specified object does not exists.
Logical Explanation: The verifyExists action reads the identification details from the Input Value column (Button;Delete;0). The action searches for the specified object using the object type, visible text, and index. If the object is found on the application interface, the verification result is stored as (True) in the {Status} variable.

Last updated