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.

_______________________________________________
Mailing list: https://launchpad.net/~sikuli-driver
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp

Reply via email to