← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #146092]: errorin running sikuli script from command line

 

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

    Status: Open => Answered

RaiMan proposed the following answer:
the find(125.png) fails because the image cannot be found on the screen
in that moment.

You should carefully read through:
-- http://sikuli.org/docx/region.html#finding-inside-a-region-and-waiting-for-a-visual-event
-- http://sikuli.org/docx/region.html#acting-on-a-region
-- http://sikuli.org/docx/region.html#exception-findfailed

The wait(15) could be optimized, by saying:
wait(<image of the NYTimes logo>, 15)
the script would continue, if the webpage is there and wait max. 15 seconds

With the new App class, there are new possibilities to wait for an opened app to be ready.
see question: https://answers.launchpad.net/sikuli/+question/145986
adapt it to your IExplorer situation

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