sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #35846
Re: [Question #273995]: Is there a change in the function behavior such as wait, exists, find --- not reproduceable
Question #273995 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/273995
Status: Open => Answered
RaiMan proposed the following answer:
why the dropbox has vanished in the above example, I explained:
highlights the new entry image at the place it was found (though highlight makes the dropdown vanish)
if you modify the example this way:
img = Pattern("img.png").targetOffset(-4,28) # image of Research | Listings | Quotes including button new below
m = find(img) # find it
reg = m.below(200).grow(10)
#reg.highlight(2) # optionally highlight the search region
capture(reg) # capture the search region
click(m) # click the New button
new = "new.png" # the new entry in the drop down
if reg.exists(new):
print "found"
#reg.highlight(-2)
capture(reg.getLastMatch())
else:
print "not found"
... it should do what you want
If you test such snippets in the IDE, you should add a
wait(5)
at the end of the script, to have a chance, to see what really happens.
--
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.