← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #241419]: [1.0.1] SikuliX and Robot Framework integration

 

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

    Status: Open => Answered

RaiMan proposed the following answer:
ok, not really, what I said ;-)

you should work bottom up, to assure, that the Sikuli features are
working with your external Jython.

But anyway:
the problem is this (as the message tells: TypeError: setProperty(): 2nd arg can't be coerced
 to String)
JS.setProperty("sikuli.Debug", 3)

so just make it a string
JS.setProperty("sikuli.Debug", "3")

Since already this broke the script run, no Sikuli features has been
touched before and hence nothing Sikuli specific could have appeared.

BTW: when running some debug or evaluation, it is always a good idea, to
only change one thing at a time.

So I recommend, to first start with the -Dsikuli.Debug=3 and the 
# keywords.py as
import org.sikuli.basics.SikuliXforJython
from sikuli import *
find(capture()).highlight(2)

# and nothing else!

if you find out, that the -D setting is not given through, then you might change keywords.py to
import java.lang.System as JS
JS.setProperty("sikuli.Debug", "3")
import org.sikuli.basics.SikuliXforJython
from sikuli import *
find(capture()).highlight(2)

If you find out, that the Sikuli features work as expected, then you
might add more content.

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