Question #265514 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/265514
Status: Open => Answered
Eugene S proposed the following answer:
Hi,
hasNext() is a Finder class method. You are trying to apply it to wrong
classes.
Below is the hasNext() usage example:
finderObject = Finder("pattern.png")
imgToFindInPattern = "pattern1.png"
finderObject.find(imgToFindInPattern)
while finderObject.hasNext():
print finderObject.next()
When the above loop is finished and you try to invoke hasNext() again, you will
get False.
Eugene
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.
_______________________________________________
Mailing list: https://launchpad.net/~sikuli-driver
Post to : [email protected]
Unsubscribe : https://launchpad.net/~sikuli-driver
More help : https://help.launchpad.net/ListHelp