← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #250725]: [how to program it]Wait for a image 5 sec if appear (or) vanish do action else exit()

 

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

    Status: Open => Answered

RaiMan proposed the following answer:
try:
    waitVanish(image, 5)
    # do some action, since it vanished within 5 seconds
except:
    # actions, since it was not there at all or did not vanish within 5 seconds

there is no vanish function like exists yet, but I think we should have
one, to be able to do

if not vanish(image, 5):
    #do something
# continue workflow

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