Question #693582 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/693582
Status: Open => Answered
RaiMan proposed the following answer:
Boolean success = null;
for (int n=0; n < 3600; n++) {
if (screen.exists("failed.png", 0)) {success = false; break}
if (screen.exists("statusCompleted.png", 0)) {success = true; break};
wait(1.0);
if (success != null) {
//either success or failed
} else {
// neither image appeared after > 3600 seconds
}
--
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.
_______________________________________________
Mailing list: https://launchpad.net/~sikuli-driver
Post to : [email protected]
Unsubscribe : https://launchpad.net/~sikuli-driver
More help : https://help.launchpad.net/ListHelp