sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #24536
[Question #244893]: Read from file
New question #244893 on Sikuli:
https://answers.launchpad.net/sikuli/+question/244893
Im new to Sikuli and have tried to figure this out but cannot find a tutorial or expanation simple enough for me :/
So I want to have a external file where i type a bunch of usernames and passwords which i want to loop and sign into the application under test.
This is what I tried:
Create a csv file and typed this into the script:
f = open(C\\Users\\caan\\Documents\\SikuliTests\\SikuliTest.sikuli\\input.csv,'r')
print f
But it doesnt work and says error "no viable alternateive at input "users"
I am supposed to write: f = open(filename, 'w')
But im not sure what filename means? i have tried writing the directory in different ways....
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.