Problem using while iteration --- use exists() instead of find()
Asked by
Pepe
I did some explamples using sikuli, but when i try to make this one:
while not find(img1.png):
sleep(1)
click(img2.png)
click(img1.png)
i can't make it work, if the image is not found i get an error in while line saying that the image is not found, but afaik the script should be like a while True (if the image is not found).
What i'm doing wrong? :S
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- SikuliX Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- RaiMan
- Solved:
- Last query:
- Last reply:
To post a message you must log in.