← Back to team overview

sikuli-driver team mailing list archive

[Question #207549]: how to verify that a particular image has been clicked and print the reult

 

New question #207549 on Sikuli:
https://answers.launchpad.net/sikuli/+question/207549

I have clicked on a random image using the below code.

m=wait("Image name")
x = random.randint(0,m.w)-int(m.w/2)
print x
y = random.randint(0,m.y)-int(m.y/2)
print y
#target=m.getCenter().right(x).below(y)
target=m.getCenter().offset(x,y)
print target
click(target)

I need to verify that the required image has been clicked successfully, how can I do this?

Please do the needful.

Thanks,
Siv

-- 
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.