← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #281176]: Confusion between two images

 

Question #281176 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/281176

masuo proposed the following answer:
When there are similar images on a screen, you should narrow a region to search.
Find an image to mark.
And find target image from this image.
And click target image.

[for example1:]
r0 = find("mark.png")
r1 = r0.right(500).highlight(2)
r1.click("target.png")

highlight() is used to recognize the region by sight.
So highlight() is not necessary after debug.

[for example1:]
find("mark.png").right(500).highlight(2).click("target.png")

[This page would be helpful]
http://sikulix-2014.readthedocs.org/en/latest/tutorials/sliders/sliders.html

-- 
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.