← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #658728]: How to work around an occasional image

 

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

Roman Podolyan posted a new comment:
This code clicks an image if finds it and does nothing if image is not present:
======
def try_click(our_image):       
        try:
                click(our_image)
        except FindFailed:
                pass
======

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