← Back to team overview

sikuli-driver team mailing list archive

[Question #654026]: Else part is not working

 

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

Here is my code:

openApp("C:\Program Files (x86)\WarehouseManagementSystem\\WMS.exe")
type("1500894853016-1.png", "9992")
type("1500894876047-1.png","SA1" )
click("1500895066396-1.png")
click("1500895154711-1.png")
click(Pattern("dmspng-1.png").targetOffset(-190,-308))
wait(2)

if exists("1500901924611-1.png"):
    click("1500902007003-1.png")
   
else:
    click("1500902007007-1.png")


If part is working but else part not executing.Script stopped without any error, give me the code example for executing my case

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