← 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

Summary changed to:
[how to program it]Wait for a image 5 sec if appear (or) vanish do action else  exit()

Description changed to:
i want to wait for a image appear for only 5 sec. if appear do click

wait(image,5).click()

If not appear within 5 sec i want to some other task like exit()

how to if  a wait() like

if(wait(image,5)):
     image.click()
else:
    exit()
Ya i got the solution for appear 
how to do it for wait 5 sec  for vanish if not vanished exit(1)

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