sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #40253
Re: [Question #146397]: [Java] How to check wether images exist in screen or not
Question #146397 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/146397
arwan.khoiruddin posted a new comment:
Hi Sukanya,
To check whether an image exists and click when it appears, I made this
function:
public void waitAppear(Screen s, String img) throws Exception {
while (true) {
if (s.exists(img) != null) {
s.click(img);
break;
} else {
s.wait(1000);
}
}
}
Hope it helps
--
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.