Screen Elements

Generic Set Text Relative

This activity sets text to the application (with moving focus to the end of the string). The string to set put in the Text textbox in an Input part of Properties window.

When both: Set text and Generic set text do not work - consider using this activity. Generic Set Text Relative activity allows you to click any point inside the application by reference to specified X and Y coordinates, and then append text to that place.

The parameter MyWindowCorners allows you to choose the reference corner of the control - horizontal and vertical offset will be calculated from that point. Positive numbers increase offset value to the right (X) and to the bottom (Y) while negative numbers to the left (X) and to the top (Y). The offset is measured in pixels.

Fill in the application custom internal name. Drop the control on the activity.

To successfully use Generic Set Text Relative activity be sure that position of application on screen (and control's edges as well) during building the scenario and in production environment is exactly the same. Check the screen resolution - it has to be the same during building the scenario and in production environment.

scr_gen_set_text_relative
Parameter nameParameter TypeIn/OutDescription
Alternative Scenario If FailedBooleanInputcheckbox; default is "on"
Application nameStringInputcustom internal name for application in which the action is taken, in order to use in Wizlink®
DisplayNameLiteralInputyou can change the name of activity for greater clarity of the scenario
MyWindowCornersDropdownInputselect the appropriate option from the dropdown list; start point to calculate vertical and horizontal offset
Retry timeout [s]DoubleInputwaiting time until the activity will execute: 1. any negative value means try once, if you fail – set Result to False and finish activity; 2. “0” means try until you get the effect; 3. any positive value is time in seconds in which the activity will persist trying until successful or the time elapses, if failed – set Result to False and finish activity
TextStringInputstring of characters to send to application
X coordinateInt32Inputhorizontal offset
Y coordinateInt32Inputvertical offset
ResultBooleanOutputreturns the Boolean value: it will return True if no error is in activity, otherwise it will return False
Result CodeInt32OutputResult Code will return 0 if there is no error in activity, otherwise in most cases it will return 1, the extended result code will show only in several chosen activities