Sikulli screen.click() how to give the region where to click

Asked by ashish on 2017-06-01

Hi

I am trying to perform the click() through sikulli. I have captured the image and I am doing it like below

Pattern image1 = new Pattern("C:\\Users\\KHANDELA1\\Pictures\\DAM_Username.PNG");
screen.click(image1)

But the image has radio button and some text and I only want to click on the radio button. I want to know how to click on particular area or pixels on the image.

Question information

Language:
English Edit question
Status:
Answered
For:
Sikuli Edit question
Assignee:
No assignee Edit question
Last query:
2017-06-01
Last reply:
2017-06-01
masuo (masuo-ohara) said : #1

Use targetOffset().
It is possible to specify a click point other than the center.

http://sikulix-2014.readthedocs.io/en/latest/pattern.html?highlight=targetOffset

Can you help with this problem?

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

To post a message you must log in.