← 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 do some action or after 5sec do some other task

 

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 do some action or after 5sec do some other task

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()

Is it possible?
Because using exists() we can only check after 5 sec

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