← Back to team overview

sikuli-driver team mailing list archive

[Question #203633]: Tablular Data inside Sikuli?

 

New question #203633 on Sikuli:
https://answers.launchpad.net/sikuli/+question/203633

Hello!

Is it possible to have data inside the script in table format? Instead of list?  

(Test users don't have admin rights on the test machines so can't use Python)

My test needs the URL and the title of the page as inputs, so my inelegant solution is to use 2 lists... It works, but i'd feel more confident if the title was always with the URL...

Example for how i got it to work...

UL=(
r"http://url1";,
r"http://url2";,
r"http://url3";)

TL=(
"title1",
"title2",
"title3")

current=0
for i in range (3):
    print (UL[current])
    print (TL[current])
    current+=1


Is there a better way to do it?
I'm concerned that if something happens to the data the lists will get out of sync...


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