← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #171648]: Search inside files and get particular data

 

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

    Status: Open => Answered

RaiMan proposed the following answer:
Sorry, my fault.

inside this for loop

for i in range(0, len(testcases), 2):

you have to replace the word line with testcases

-- comment:

for line in testcases: steps through testcases one line at a time

but you wanted to step through with 2 lines at a time. so we have to use
for i in range(): which steps through the index. i contains the index
inside the loop, which has to be used to select the appropriate entry in
testcases.

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