sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #15341
Re: [Question #217868]: How to recognized 2 identical controls on page?
Question #217868 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/217868
j posted a new comment:
A third possibility is to use
findAll("..//Test Data//ResumeBar.png")
and sort the returned results by x- or y-coordinate.
Then you can pick the pattern you like, e.g. if you know the image is found twice and the right match is more left than the other, just pick the match with lower x-coordinate.
I know this might be more code to write but I just mention if for completeness :P
I guess it would also perform better because only one search is actually needed.
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.