← 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:
Can you please write it in java?  Am using sikuli api in eclipse, using
java  as a programming language

On Thu, 22 Oct, 2020, 11:05 pm masuo, <question693582@xxxxxxxxxxxxxxxxxxxxx>
wrote:

> Your question #693582 on Sikuli changed:
> https://answers.launchpad.net/sikuli/+question/693582
>
>     Status: Open => Answered
>
> masuo proposed the following answer:
> If you want to determine whether image A or image B exists at that moment
> imagelist = [imageA, imageB]
> mm = findAny(imagelist)
> for m in mm:
>     print m.getIndex()
>
>
> https://sikulix-2014.readthedocs.io/en/latest/region.html#findmorethanoneimage
>
> If you want to check in sequence at that moment
> if exists(imageA, 0):
>     print "imageA is found"
> elif exists(imageB, 0):
>     print "imageB is found"
>
>
> If you want to check continuously for 3600 seconds
> t = 3600
> while t > 0:
> if exists(imageA, 0):
>     print "imageA is found"
> elif exists(imageB, 0):
>     print "imageB is found"
> wait(10)
> t = t - 10
>
> --
> 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=0
>
> 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.