Generic Click Relative
When you have really hard time with the scenario, when Click activity does not work, when Generic Click activity does not work, when it is impossible to hunt a control in the right place you need - consider using this activity. Generic Click Relative activity allows you to click any point in an application by reference to specified X and Y coordinates. This activity moves the focus to the place where click is done.
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.
To successfully use Generic Click Relative activity be sure your application is on top of your screen (its advised to use Window Activity before using GCR). Remember that essential to success is the same position of application on screen (and control's edges as well) during building the scenario and in production environment. Check the screen resolution - it has to be the same during building the scenario and in production environment.
|Parameter name||Parameter Type||In/Out||Description|
|Alternative Scenario If Failed||Boolean||Input||checkbox; default is "on"|
|Application name||String||Input||custom internal name for application in which the action is taken, in order to use in Wizlink®|
|DisplayName||Literal||Input||you can change the name of activity for greater clarity of the scenario|
|MyWindowCorners||Dropdown||Input||select the appropriate option from the dropdown list; start point to calculate vertical and horizontal offset|
|Retry timeout [s]||Double||Input||waiting 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|
|X coordinate||Int32||Input||horizontal offset|
|Y coordinate||Int32||Input||vertical offset|
|Result||Boolean||Output||returns the Boolean value: it will return True if no error is in activity, otherwise it will return False|
|Result Code||Int32||Output||Result 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|