Set Text

This is pre-built Action located under the @Custom Element Name. It instructs the Avo Assure Client to set the text/string on the object specified in the input.

Syntax

Input: <Object Type_Input>;<Visible text>; <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)

Usecase/Example

Scenario

A user is testing a feedback form on a website. The Avo Assure needs to verify that when the user types in a comment into the Feedback text area, the correct text is set in the input field. The Set Text Action is used to programmatically insert a specific comment into the text area.

Input

textbox;;1; Great service, will recommend!

Expected Result

The feedback text area should contain the text "Great service, will recommend!" after the script sets it, and the user can submit the form with this comment.

Output

The "Set Text" Action successfully sets the expected comment in the feedback text area. The test passes as correct text is inserted into the textbox.

Last updated

Was this helpful?