← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #258209]: f.find makes interactive sikuli to start up again if image isnot found

 

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

    Status: Answered => Open

Hans Remmers is still having a problem:
The test is datadriven and each button to push has his own call to the interactive sikuli. Also between pushing buttons other actions are taken and depending on the results different buttons can be pushed.
In the mean time I changed my script a little:

setThrowException(False)
img1="...\Temp\MasterImage.png"#
f=Finder(img1)#
img2="...\Images\KopenLosKaartje.png"#
result = f.find(img2)# find all matches
rr=[]#
rr.append(f.next())#
rr.append(img2)#
f.destroy()#
print(rr)#

which run ok when the button is on the masterimage
but restarts after f.find and the button isnot on the master. It will recovere but then the timeout of the application is reached.
This is the feedback from the wrapper:

26-11;11:06:53.085 |;'\\prod.ns.nl\usr\user11\NSC.Ticktest1\Documenten'
CMD.EXE is gestart met het pad hierboven als actieve map. UNC-paden worden
niet ondersteund. De standaardinstelling is de Windows-map. Deze wordt nu
gebruikt.
C:\Program Files\Java\jre6\bin\;C:\NSTA\ThirdParty\Sikuli\libs
SikuliX Package Build: 1.0.1 12SEP2013160242
Hello, this is your interactive Sikuli (rules for interactive Python apply)
use the UP/DOWN arrow keys to walk through the input history
help()<enter> will output some basic Python information
shelp()<enter> will output some basic Sikuli information
... use ctrl-d to end the session
@@@

The wrapper does add some stuff to the lines from the script. Therefor I added the commentstatement to each line.
This didnot solve the problem so I'm still investing this part

Thanks so far

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