← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #632476]: Wait after click?

 

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

    Status: Open => Answered

RaiMan proposed the following answer:
the syntax is ok, but you should avoid the second search with the click:

before version 1.1.0:

if exists("asdf1.png"):
    click(getLastMatch())
    wait(10)
else:
    click("asdf3.png")

version 1.1.x+

if exists("asdf1.png"):
    click()
    wait(10)
else:
    click("asdf3.png")

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