← Back to team overview

sikuli-driver team mailing list archive

[Question #615651]: sikuli if exists or if not exists

 

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

Hi,
I made a sikuli ide script for one of the social media exchange site.
My script is running perfectly what i want until a image not found. When that image not found,i want to pass this image to related next one and the script should be keep to running. Here is my code and i'll explain through it.

doubleClick("1491684759044.png")
waitVanish("1491686155624.png", 7)
click("1491686205379.png")
wait("1491686653455.png", 10)
click("1491686741150.png")
wait (4)
click("1491686890829.png")
while True:
    wait(4)
    doubleClick("1491684759044.png")
    waitVanish("1491686155624.png", 7)
    click("1491686205379.png")
    wait("1491686653455.png", 10) ------------> if not exists
    click("1491686741150.png") -----------------> if not exists
    wait (4)
    click("1491686890829.png") ------------------> click to this image and keep running over and over again.

I hope i could explain.
Thanks.

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