← Back to team overview

sikuli-driver team mailing list archive

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

 

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

Nermin Doğanlı posted a new comment:
Hi,
First of all thank you for advices.I solved the problem with following below;

 if exists(Pattern("1491794629239.png").targetOffset(-1,2), 7):
        click(Pattern("1491794629239.png").targetOffset(-1,2))
    else: click("1491686890829.png")

As I do not know why if i use ;

else: 
   click("1491686890829.png") # with tab it is not working!

else: click("1491686890829.png") # like this working like a charm :D

Thank you very much who advice me. Cheers <3

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