← Back to team overview

sikuli-driver team mailing list archive

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: Answered => Open

Santhosh Motamarry is still having a problem:
Hi Raiman,

i have written your code given above.

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()

In this code it is directly going for the second "IF" condition(i.e.,
password validation. it is not checking the length condition) even i am
giving the pwd with length 4 (PASSWORD GIVEN: Sa!@)

-- 
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.