sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #06774
Re: [Question #178264]: Need Sikuli Script for How to check two conditions at a time.
Question #178264 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/178264
Status: Open => Answered
RaiMan proposed the following answer:
I think, it does not make sense, to check password content, when the
length is not correct.
So this would be my solution:
if(len(p)>5 and len(p) <21):
if (re.match(test_num,p) and re.match(test_char,p) and re.match(test_other,p)):
popup("ok")
else:
popup("invalid")
else:
popup("wrong length")
stopObserver()
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.