← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #269664]: Sikuli loop with python

 

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

    Status: Answered => Open

Wei Yang is still having a problem:
the first part works, but the second part there is an error message. I
wonder what causes the error.


A=[111,222,333]
B=[123.456.789]
for i in range(len(A)):
    try:
        .
        type(A[i])                                            (line 12)
        type(B[i])
        .
    except FindFailed:
        type(Key.F5)

** [error] Type Error (type(): 1st arg can't be coerced to string)
     [error] --- Traceback --- error source first line: module(function) statement 12 main: (<module>)type(A)
     [error] --- Traceback --- end

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