sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #15327
Re: [Question #217868]: How to recognized 2 identical controls on page?
Question #217868 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/217868
Status: Open => Answered
RaiMan proposed the following answer:
either
--1. restrict the search region to the area, where you expect the button to be or
--2. use Pattern() to raise the needed similarity
--1.
usually one finds something fixed on the page, that should be found definitely in all cases and the define the search region relative to this match.
Match m = find(top_image);
Region r = m.below()
r.click(something_inside_r)
--2.
s.click( (new Pattern("E://Test Data//Resume.png")).similar(0.95), 0);
we ask to find only images with a similarity score of >= 0.95, which normally is sufficient to distinguish between similar buttons
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.