sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #13267
[Question #209147]: if exists with try catch
New question #209147 on Sikuli:
https://answers.launchpad.net/sikuli/+question/209147
exists always return true in my case even if the image is not found
if exists(imgA):
print "img A exists"
try:
click(imgA)
except:
sys.exit(0)
else:
click(imgB)
Even if imgA does not exists "img A exists" is printed and it goes into the try block .
please tell me wat i am doing wrong here
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.