← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #254275]: To fetch data in sikuli from CSV file

 

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

    Status: Answered => Open

Anurag is still having a problem:
out = open("c:\\temp1\\et.csv","rb")
data = csv.reader(out)

        data=[row[1] for row in data]
print(data[0])
print(data[1])
print(data[2])

Now i have to call row value like anurag from name , 23 age and 23 from marks individually like 'anurag' at specific location in script and i am able to do so easliy by calling data[0], data[1], data[2]
but now i have to call rajeev, 24, 45 and use in script at same location where i used the value of first ones.

means i have to repeat steps of my script after the successful
completion using values of row 1(anurag,23,23 at their respective
location like anurag at their location and 23 at their and 23 at their)
and then it use value of row 2 and then row 3

hope you got my question !!!

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