sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #04220
Re: [Question #157108]: [Java] JUnit: How create assertTrue: Image exists or not ?
Question #157108 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/157108
RaiMan requested more information:
No idea, seems ok.
But I would write it:
public boolean ensureExists(String image) {
Match m = s.exists(image);
if (m != null) {
System.out.println("Result of m is " + m);
return true;
}
return false;
}
Only to be sure: screenshot is a string containing a filename ending
with .png?
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.