sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #56005
Re: [Question #693582]: Is there way in sikuli to wait for an element until its visible ? ? ?
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.