← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #174821]: How to add log statement into the log files generated via command line

 

Question #174821 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/174821

    Status: Open => Answered

RaiMan proposed the following answer:
This means, that in the second case, Sikuli "found" the not existing
image on the screen somehow (similar object).

to check:

App.open(r'notepad')
if(exists("nonExist.png")):
    print "It passed"
    print getLastMatch()
    getLastMatch().highlight()
    popup("Can you see, what I found?")
    getLastMatch().highlight()
else:
    print "It failed"
App.close('notepad')

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