sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #04531
Re: [Question #167670]: Account switiching problem
Question #167670 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/167670
Status: Open => Answered
RaiMan proposed the following answer:
users = (("user1", "password1"), ("user3", "password2"), ("user3",
"password3"))
for user in users:
login = find("yellowish-word-Login.png")
click(login.getCenter().below(50))
type(user[0])
click(login.getCenter().below(90))
type(user[0])
click(login.getCenter().below(120))
# some preparations for the following workflow
# your looping
In your looping you have to either react on the error situation and
switch back to the login page or you arrange your loop so the error
cannot happen, because you logout before (e.g. after 45 turns). In any
case this processing has to be in the above part "# your looping".
Hope it helps.
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.