sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #31849
Re: [Question #265514]: List, object has no attribute 'hasNext'
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.