match() if not found what value does it give?
Asked by
MP
In the code below I am learning the basics. But I cant seem to give a "not found" popup when he didnt find the image.
1) what is wrong in the code to give a not found popup?
2) what is the value the find gives if he doesnt find anything?
code:
=======
m = find("IMAGE")
if m.exists:
popup ("FOUND")
m.highlight()
wait (2)
m.highlight()
print ("FOUND")
else:
popup ("NOT FOUND")
=======
thx :)
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.