← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #271389]: How to perform an action after .wait() does not find image?

 

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

Description changed to:
The summary is this: (I am using Java, by the way)
I want to wait for an image. I use screen.wait(image,time) to achieve this. Sometimes the image is not found after this wait period. I want to continue to run code after this by saying ( if image not found, then do something). However, it just says "image not found" in the console and stops the test if the image is not found. I want to be able to do a screen.exists comparison to say what to do if the image is not found, but the test simply fails if the image is not found. 

How do I continue to run code after an image is not found?

-- 
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.