sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #44378
[Question #660409]: Loop Fails
New question #660409 on Sikuli:
https://answers.launchpad.net/sikuli/+question/660409
Good Afternoon, my loop is running correctly for about 4-5 loops. After that, I get the following error.
FindFailed (...png (87x23) seen at (569,407) with 1,00 in S(0)[0,0,1366x768]E:Y,T:3,0)
[Error] --- Trackback --- error source first line: module (function) statement 45: main (loopAngulo)
doubleclick(X.png)
trackback---end
It seems that in the loop number 5 it is not taking into account lines 40 and 41 and I don't know why. What worries me is that the first loops are working fine. Here is my code:
def loopAngulo(i):
j=85.5
while j <= 90:
doubleClick("1509640412186.png")
wait(1)
type("K")
type(Key.ENTER)
wait(1)
type("L")
type(Key.ENTER)
wait(1)
type (str(i))
type(Key.ENTER)
wait(1)
type (str(2))
type(Key.ENTER)
wait(2)
type (str(3.27))
type(Key.ENTER)
wait(1)
type (str(j))
type(Key.ENTER)
wait(1)
type (str(1))
type(Key.ENTER)
wait(2)
type ("D")
type(Key.ENTER)
type(Key.ENTER)
wait(2)
type (str(50))
type(Key.ENTER)
wait(2.2)
type (str(2))
type(Key.ENTER)
wait(2.2)
type(Key.ENTER)
wait(2.5)
type(Key.ENTER)
wait(2.4)
type(Key.LEFT)
wait(3)
type(Key.ENTER)
wait(3)
doubleClick("1509667530944.png")
wait(3)
type (str(i))
wait(1.2)
type(Key.ENTER)
wait(1.2)
type (str(j))
wait(1.5)
type(Key.ENTER)
wait(1.6)
type(Key.ENTER)
j+=1.5
i=1.36
while i <= 1.48:
loopAngulo(i)
i+=0.12
--
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.