Click on Element

This pre-built Action located under the @Custom Element. The functionality of this action in Avo Assure to perform a click operation on the element specified in the Input Value and stores the result in a dynamic variable.

Syntax

Input Value:<ObjectType>;<VisibleText(Optional)>;<index>;<abs(optional)>

Argument
Description

<ObjectType> (Required)

Specific type of object to be clicked. (e.g., button, link )

<VisibleText> (Optional)

The visible text associated with the object.

<index> (Required)

Provide the position of the element, which helps to identify the value based on the sequence in list . (starting from 0)​

<abs> (Optional)

If the abs is provided, the action is performed with absolute identification using the absolute X path

Output Value

Argument
Description

<Dynamic Variable>(Optional);<Dynamic Variable> (Optional)

This dynamic variable holds the status as True or False

Example 1

Performs a click action on the specified object using the provided identification details

The Click on Element action takes the value from the Input Value column (e.g., button;;0) and performs a click operation on the matching object based on the object type and index. The result of the click operation is stored in the {Click} variable as Ture or false.

Example 2

Performs a click action using optional parameter

The Click on Element action takes the value from the Input Value column (e.g., button;Log In;0;/html/body/div/div/div/div/div/div[1]/button) and performs a click operation on the matching object based on the object type, visible text, index and abs. The result of the click operation is stored in the {Click} variable as Ture or false.

Last updated

Was this helpful?