← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #654026]: Else part is not working

 

Question #654026 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/654026

Muthumanikandan posted a new comment:
I am a tester and i am very new to python, finally i found solution now
the below code working fine.

doubleClick("1501306881166.png")
wait(2)
type(Pattern("1501306924449.png").targetOffset(-135,-51), "10002")
type(Pattern("1501307025253.png").targetOffset(-138,-1), "SA1")
click(Pattern("1501307079575.png").targetOffset(1,4))
wait(3)
click("1501307136462.png")
hover(Pattern("if dms.png").targetOffset(-245,-331))
click(Pattern("recdms.png").targetOffset(-240,-305))
wait(3)
m = exists("snippop.PNG")
if m:
 exists("snippop-1.PNG").highlight(2) 
 click(Pattern("snippop-2.PNG").targetOffset(186,50))
 sleep(5)

else :
 #print "if condition false"
 exists("1501307454421.png").highlight(2)
 sleep(5)
    
click("1501307509048.png")
sleep(2)
openApp("notepad")

-- 
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.