sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #22702
Re: [Question #240629]: [1.0.1] findAllNow method unknown... --- no longer available (makes no sense)
Question #240629 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/240629
Status: Open => Answered
RaiMan proposed the following answer:
The JavaDocs mentioned are out of date - sorry for that.
I have purged findAllNow() since it makes no sense:
If you use findAll() instead, you get the same behaviour and result:
If the target is already on the screen, the search will come back after the first search round with the found matches.
Otherwise, it will wait until at least one target gets visible and come
back with the found matches, or throw FindFailed if timeout.
A findAll() is not recommended to find out, wether at least one target
is visible. use exists() instead:
# at the script level:
if exists(target, 0):
matches = list(findAll(target))
else:
print "does not make sense to use findAll() - target not visible currently"
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.