← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #245246]: find to different images then if found execute different action

 

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

    Status: Open => Answered

Eugene S proposed the following answer:
Hi,

You can try something like that:

while True:
    if exists("imageA.png"):
        print "image A found. going to refresh"
        click("refresh.png")
    elif exists("imageB.png"):
        print "image B found!"
        click("imageC.png")
        break
    else:
        pass


Cheers,
Eugene S

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