Click location on an Image/ clicking on image other than center point of the Image

Asked by Pavan Kumar

Is there any way to click on am image corner point other than center point of the Image???? I have tried to click something like this

Region r = s.find(imagepath);
r.setLocation(new Location(0,0)).click();

but its taking location of the entire screen instead of image region!!!!

Question information

Language:
English Edit question
Status:
Answered
For:
SikuliX Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
RaiMan (raimund-hocke) said :
#1

s.click(r.getTopLeft());

Can you help with this problem?

Provide an answer of your own, or ask Pavan Kumar for more information if necessary.

To post a message you must log in.