← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #211228]: cron and sikuli script issue on OSX

 

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

    Status: Open => Answered

RaiMan proposed the following answer:
For some reason in the crontab situation it takes longer than 3 seconds
(standard waiting time) for the image Serendresuru.png to get visible or
the browsers url bar looks different in this case, so you get a
FindFailed exception.

so try this:

wait("Serendresuru.png", 10) # wait for the browser to be oppened
click(getLastMatch()) # click on the browser URL bar

or this
click(wait("Serendresuru.png", 10))

both versions wait for max 10 seconds and click on the match that was
already found.

You might also try the option:
setFindFailedResponse=PROMPT

see docs: http://sikuli.org/docx/region.html#exception-findfailed

-- 
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.