I am just evaluating sikuli for one of our automation testing. I am trying to execute a script that can find the location of an image in a region.
This is the .sikuli script that I have written.
match = find("regionImage.png") # The actual image here.
z = match.findAll("requiredImage.png")
for icon in z:
print icon.getTarget()
click(icon)
time.sleep(3)
#Output
L(693,464)@S(0)[0,0 1920x1080]
L(693,519)@S(0)[0,0 1920x1080]
The problem that I am having is getTarget gives the coordinates corresponding to the whole screen. What would be perfect is to get the location with respect to a set region. Is it possible? ( Ofcourse you can always subtract but just was wondering if there are any more good way )