Question #200098 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/200098
Status: Open => Answered
Tim Tindell proposed the following answer:
I hope this helps. I have been doing things just like this where I work.
Use an if exists(img) case to see if it exists and if it does you print
"pass" else print "fail" Here is an example:
if exists(img):
print "pass"
else:
print"fail"
Or you could make it write it to a file:
file=open(r"C:/Users/USERNAME/Desktop/test.txt", 'w')
if exists(img)
file.write("pass')
else:
file.write("fail")
file.close()
Obviously enter your own username. there is a get() to find the username
of the current user. Comment if you want it.
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.
_______________________________________________
Mailing list: https://launchpad.net/~sikuli-driver
Post to : [email protected]
Unsubscribe : https://launchpad.net/~sikuli-driver
More help : https://help.launchpad.net/ListHelp