sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #06352
[Bug 880861] Re: findAll() with multiple matches returns invalid last match
I do not think, that this is a bug, but ...
To analyze the situation pls. attach a screenshot too. This makes it
possible to see, what really happens.
There might be similar things on the screen, that are matched with
findAll(), but with a lower similarity.
so you might try:
applies = findAll(Pattern("Apply.png").similar(0.9))
Other general things:
- capture as little background as possible. The red apply button should only contain the text "Apply".
- If possible narrow the search region to the area, where the apply buttons appear and use reg.findAll()
--
You received this bug notification because you are a member of Sikuli
Drivers, which is subscribed to Sikuli.
https://bugs.launchpad.net/bugs/880861
Title:
findAll() with multiple matches returns invalid last match
Status in Sikuli:
New
Bug description:
1. Sikuli 1.0 rc3
2. Windows XP SP3 32-bit
3. Enclosed code loops over all "Apply" boxes. Once apply has been clicked it wait for a confirmation box to appear, confirms, waits for the confirmation box to disappear. The final match does not point to the bitmap.
4. Required bitmaps attached.
# setFindFailedResponse(PROMPT)
setROI(Screen(0))
applies = findAll("Apply.png")
for apply in applies:
click(apply)
confirm="Doyoureallyw-1.png"
wait(confirm)
click(Pattern("YesNo.png").targetOffset(-31,-1))
waitVanish(confirm)
To manage notifications about this bug go to:
https://bugs.launchpad.net/sikuli/+bug/880861/+subscriptions
References