Set Text

This pre-built Action is located under the @Custom Element. The functionality of this action in Avo Assure to set the text/string on the object specified in the input, and save the result in dynamic variable.

Syntax

Input Value: <Object Type_Input>;<Visible text>;<index>;<value>;<abs(optional)>

Argument

Description

<Object Type_Input> (Required)

Specific type of object to be selected.

<Visible text>

(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)​

<value>

(Required)

The value which needs to be set on the object.

<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 variable holds the status of the action as True or False.

Example

Inputs the specified text into the targeted input field on the application interface

The Set Text action takes the value from the Input Value column (e.g., textbox;;0;John@123) and enters the given text into the defined input field. The result of the text entry operation is stored in the {Text} variable as Ture or False

Example 2

Inputs the specified text into the targeted input field on the application interface using optional parameter

The Set Text action takes the value from the Input Value column (e.g., textbox;Password;0;John@123;//*[@id="email"]) and enters the given text into the defined input field. The result of the text entry operation is stored in the {Text} variable as Ture or False

Last updated

Was this helpful?