← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #402262]: Random number of times around a loop

 

Question #402262 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/402262

    Status: Open => Answered

RaiMan proposed the following answer:
--- random:
see: https://docs.python.org/2/library/random.html

--- wait for image x OR y
while true:
    if exists(image1, 0):
        # do something
        break
    if exists(image2, 0):
        # do something
        break
    wait(1)

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