← Back to team overview

sikuli-driver team mailing list archive

[Question #644808]: while exists (img, 0) always stop loop

 

New question #644808 on Sikuli:
https://answers.launchpad.net/sikuli/+question/644808

while exists ("1498312677594.png"):     
      if exists (Pattern("1498307427007.png").exact(),0):         
          print "Found Deniro*"
          #locationMap
          hover(Location(1140,110))
          click(hover)
          #battleicon
          doubleClick("1498310619746.png")
          click(Pattern("1498310847322.png").similar(0.90))
          wait(30)
          #battleicon
          doubleClick("1498310619746.png") 
          click(Pattern("1498310803864.png").similar(0.90))
          #locationMap
          hover(Location(1140,110))
          click(hover)
          
 the problem here is..when dont find click(Pattern("1498310847322.png").similar(0.90)) it just break the loop 
      
          




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