← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #671416]: Script attempts to run then immediately stops, but provides no error msg

 

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

    Status: Open => Answered

RaiMan proposed the following answer:
You should either work with an IDE, that allows real debugging (e.g.
PyCharm) or add some print statements (e.g. at the end of def()'s
reporting the result of the function.

You might also use the SikuliX debug options.

Currently I can see nothing in your script, that should report anything
in the message area.

If there would be a syntax or indentation error, this would definitely
be reported.

Simple questions:
- did the browser open?
- is a screenshot stored?

general recommendations:
- use the latest 1.1.3 nightly
- add some checks to your workflow, to assure things are going as you expect (e.g. wait for the Google image after having issued the load url)

One more thing: there is os.path.join, that simply allows to build paths
from given parts. String concat should be avoided for that especially on
Windows becaus of the double-backslash-trap.

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