exists(Pattern) finds something, but findall(Pattern) doesn't
Hi there,
strange problem. I'm strying to make an auto deleter for a manager program. It should find menu icons, right click them and then select delete. Sometimes the icons are not there but I would catch that with a simple "if exists(icon)", followed by a findAll algorithm clicking every icon. the code looks something like this:
def deleteAllNodes(
r = self.returnMenu
for icon in OEIconList:
if r.exists(rPattern): #This sometimes works
So for some reason the same pattern is found differently by exists and findAll.
Anyone have an explanation for this?
Thanks in advance!
Best,
David
Question information
- Language:
- English Edit question
- Status:
- Answered
- For:
- SikuliX Edit question
- Assignee:
- No assignee Edit question
- Last query:
- Last reply:
Can you help with this problem?
Provide an answer of your own, or ask David Scheele for more information if necessary.