← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #169767]: IF image appears FIRST in 1 of the 2 regions

 

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

    Status: Answered => Open

Randy is still having a problem:
Is it correct? because it just pops right out after a few seconds
without any error. I'm still lost

regA = False
while True:
    if  regA.exists(img A):
        regA = True
        break
    if  regB.exists(img B):
        break
    wait(5)
if regA:
    sleep
else:
    if  regC.exists(img B):
         click(img B)
    else:
         click(img C)
         .waitVanish( )

-- 
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.