← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #248290]: Recursive Processing of a List

 

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

    Status: Open => Answered

Eugene S proposed the following answer:
Hi,

It is not very clear what are you trying to do so I would assume,
according to my understanding, that you have multiple text boxes and you
want to populate each one of them with the the items from you list in
the following fashion:

1. Paste the first item in list into all text boxes
2. Paste the second item in list into all text boxes
3. ..
4. Stop when there are no more items in the list

So if that's true, you can do something like that:


lst = [apple, orange, grape, banana] #define a list

for item in lst:
    for textBox in findAll(<img>):
        type(item)


Take a look at that and see if that answers your question. Feel free to ask if I got you wrong or if something is unclear.


Regards,
Eugene

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