← Back to team overview

sikuli-driver team mailing list archive

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: Answered => Open

Kogul is still having a problem:
Hi Railman,

Thanks for the reply and solution. I will implement the above solution get
back here if there is any hurdle in the implementation.

On Fri, Oct 23, 2020 at 4:15 PM RaiMan <question693582@xxxxxxxxxxxxxxxxxxxxx>
wrote:

> Your 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
> }
>
> --
> If this answers your question, please go to the following page to let us
> know that it is solved:
> https://answers.launchpad.net/sikuli/+question/693582/+confirm?answer_id=6
>
> If you still need help, you can reply to this email or go to the
> following page to enter your feedback:
> https://answers.launchpad.net/sikuli/+question/693582
>
> You received this question notification because you asked the question.
>

-- 
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.