← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #157108]: How create asserTrue: Sikuli + Junit + ANT : Image exists or not ?

 

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

    Status: Open => Answered

RaiMan proposed the following answer:
Supposing you are fully on the Java level:

use 
Match m = Screen.exists("some-image.png")
or
Match m = Region.exists("some-image.png")

m is set to null, if the image could not be found.

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