sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #42168
Re: [Question #615651]: sikuli if exists or if not exists
Question #615651 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/615651
Description changed to:
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)
click("1491686741150.png") # if exists continue to statement, if not exists click ("1491686890829.png")
wait (4)
click("1491686890829.png")
I hope i could explain.
Thanks.
--
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.