Craig_Horne
14 years agoOccasional Contributor
How to set ClientX and ClientY for a recorded button action to -1
Hello,
On a recorded test I wish to be able to set the clientx and clienty for the buttons to -1. This is so where ever the button is on screen it will click the middle of the button. I have created a template that gets the text off the button so it will find that button where ever it is on the screen but because the clientX and clientY are not -1 it will not always click the button.
What I want to do is if someone records a test and it is a button click it will set the clientX and clientY to -1 automatically. Is this something I am able to do without manually changing the properties one by one in the keyword test.
Thanks
Craig
On a recorded test I wish to be able to set the clientx and clienty for the buttons to -1. This is so where ever the button is on screen it will click the middle of the button. I have created a template that gets the text off the button so it will find that button where ever it is on the screen but because the clientX and clientY are not -1 it will not always click the button.
What I want to do is if someone records a test and it is a button click it will set the clientX and clientY to -1 automatically. Is this something I am able to do without manually changing the properties one by one in the keyword test.
Thanks
Craig