← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #235392]: If else

 

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

panaceyya posted a new comment:
for i in range(153):
     if not exists(IMAGE1):
         wait(4)
         type(Key.F5)
         continue
     # your stuff on indent level 1
wait(,1)
find(Pattern(image1).similar(0.94))
click(Pattern(image1).similar(0.89).targetOffset(42,-3)),
wait(2)
click(Pattern(image2).similar(0.89).targetOffset(-340,-13))
click(Pattern(image3).similar(0.82).targetOffset(148,-4))
wait(4)
type(KEY_F5)

Ok its refreshes page if not found image1 and doesnt click img2,3

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