sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #43980
Re: [Question #658728]: How to work around an occasional image
Question #658728 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/658728
Status: Answered => Open
DAVID MASTROIANNI is still having a problem:
def try_click(our_image):
try:
click(our_image)
except FindFailed:
pass
try_click(Pattern("1506689688440.png").targetOffset(44,-61))
try_click("1506689574881-2.png")
try_click("1506689746912.png")
__________________________________________
I put this code before the rest of my script, but now my script won't do anything when I click run.
Again I'm trying to achieve a code where if an image appears it will be clicked, however the image may or may not show at a point in the middle of the script.
--
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.