← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #392628]: reading a csv file to log in

 

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

    Status: Open => Answered

RaiMan proposed the following answer:
in your case, after the loop email and password contain the 3rd line
content.

you have to put the login/logout action into the loop after the print:

for line in f.readlines():
    email, password = line.strip().split(",")
    counter +=1
    print email, password, counter
    doLogin(email, password)
    doLogout()

... assuming, that doLogin and doLogout are functions defined before,
that do the job or are replaced by the lines of code representing the
login and logout logic respectively.

-- 
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.