sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #06773
[Question #178264]: Need Sikuli Script for How to check two conditions at a time.
New question #178264 on Sikuli:
https://answers.launchpad.net/sikuli/+question/178264
Hi Raiman,
I need script to check two conditions at a time.
eg: cond 1: password validation cond 2: pasword leng
i have answers for two conditions but i am unable to check both conditions at a time.
i have tried like this.
if(re.match(test_num,p)and re.match(test_char,p)and re.match(test_other,p)):
if(len(p)<6 or len(20)):
popup("ok")
else:
popup("length im sufficient")
stopObserver()
else:
popup("invalid")
stopObserver()
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.