sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #01441
Re: [Question #146397]: How to chcek weather images exist in screen or not., how to declare match varibale in java
Question #146397 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/146397
Status: Open => Answered
RaiMan proposed the following answer:
yes, s.exists() returns a match object if found - otherwise "Java
nothing", that can be used in further actions and find's (subclass of
Region). see docs.
So i guess this should work (meta code)
if(s.exist(file name.ext))
do something if image is found
else
do something is image is not found
endif
Now it is your turn to make it Java ;-)
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.