← Back to team overview

sikuli-driver team mailing list archive

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 your patience
The thing is
if exists(Pattern("file.png").similar(0.95)):
 stops my execution if the image exists or not  my code is as below

if exists(Pattern("file.png'").similar(0.95)):
    click (Pattern("file.png'").similar(0.95))
    getLastMatch().highlight(3)
    click(getLastMatch())
else:
   print "image find failed"

The control is not coming to else part itself
It is not alone with this one image i tried ..I tried with several images :-(. But the same thing :-(

-- 
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.