← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #667270]: While loop that stops when the condition is no longer met

 

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

    Status: Open => Answered

RaiMan proposed the following answer:
while not exists("SHOWMORECOMM-1.png") and not exists("1522075524740.png"):
    wait(5)
    type(Key.END)

    if exists("SHOWMORECOMM-1.png", 2):
        click()
    wait(5)

    if exists("SHOWMORECOMM-1.png") and exists("1522075524740.png"):
        click("SHOWMORECOMM-1.png")
    else:
        break

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