sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #13358
Re: [Question #209147]: if exists with try catch
Question #209147 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/209147
Status: Answered => Open
Omkkumar is still having a problem:
Hi raiman,
thanks for all ur replies.
But still same problem :-(
please bear with me
if exists(Pattern("file.png").similar(0.95)):
getLastMatch().highlight(3)
click(getLastMatch())
else:
print "image not found"
this works perfectly fine in a sikuli IDE
But when i run it from a eclipse setting my image path it fails
as usual the script stops execution when it comes to if exists().
I have posted my code and the directory struture of my project already.
Request u to please trll me whether i need to change the imagepaths as
a.solution for this
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.