sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #51298
[Question #680188]: match() if not found what value does it give?
New question #680188 on Sikuli:
https://answers.launchpad.net/sikuli/+question/680188
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 :)
--
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.