sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #30341
[Question #261418]: onAppear() performs function but gives error and halts script. does not happen in 1.0.1
New question #261418 on Sikuli:
https://answers.launchpad.net/sikuli/+question/261418
Version using 1.1.0
Windows 7 64 bit
use onAppear command
I use onAppear quite often to read dialog boxes and perform commands. one example is:
onAppear("1421877826215.png", paste('List Item'))
in 1.0.1 it performs this fine and continues script.
in 1.1.0 it performs this but then stops, supplies an error and the script halts.
i am calling this function from another script so the error just says error in line XXX where im calling it so I end up having to go find the parent script and run it individually to get the actual error which asys:
[error] script [ TestScratchpad2 ] stopped with error in line 1
[error] java.lang.ClassCastException ( java.lang.ClassCastException: java.lang.Integer cannot be cast to org.sikuli.script.ObserverCallBack )
you can use any parameter with onAppear and it will run with the parameter but always gives an error. the error changes depending on which parameter you call.
if you call it like this:
onAppear("1421877826215.png", popup('List Item')
then you get this error:
[error] script [ TestScratchpad2 ] stopped with error in line 1
[error] java.lang.NullPointerException ( java.lang.NullPointerException )
for now I am falling back to 1.0.1 since i use this in so many areas I can not change them all to wait() functions to work around it.
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.