sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #13674
[Question #211228]: cron and sikuli script issue on OSX
New question #211228 on Sikuli:
https://answers.launchpad.net/sikuli/+question/211228
Hello everyone,
I am running Sikuli X-1.0rc3 (r905) on OSX Mountain Lion.
I had an issue when I tried to run sikuli scripts from a crontab for browser GUI testing.
The script starts on time, the browser Firefox is openned, but the Sikuli IDE crashes after the browser openning.
here is the crontab :
00 01 * * * /Applications/Sikuli-IDE.app/sikuli-ide.sh -s -r /Users/USER/Desktop/test.skl
here is the test.skl script :
openApp("Firefox")
wait("Serendresuru.png") # wait for the browser to be oppened
click("Serendresuru.png") # click on the browser URL bar
wait(1)
paste("www.google.com")
wait(1)
type(Key.ENTER)
Here is the standard output :
[info] Sikuli vision engine loaded.
[info] Mac OS X utilities loaded.
[info] VDictProxy loaded.
[log] App.open Firefox(0)
[log] openApp: "Firefox"
[info] locale: fr_FR
Here is the error output (sorry, there are some french sentences):
Erreur d'exécution lors de l'exécution /var/folders/04/m1d41v257yxg1t1_h8n2ct5m0000gn/T/tmp-1320609112.sikuli/test.sikuli
Traceback (most recent call last):
File "/var/folders/04/m1d41v257yxg1t1_h8n2ct5m0000gn/T/tmp-1320609112.sikuli/test.sikuli/test.py", line 2, in <module>
wait("Serendresuru.png")
File "/Applications/Sikuli-IDE.app/Contents/Resources/Java/sikuli-script.jar/Lib/sikuli/Region.py", line 99, in wait
Line 7, in file /var/folders/04/m1d41v257yxg1t1_h8n2ct5m0000gn/T/tmp-1320609112.sikuli/test.sikuli/test.py
at org.sikuli.script.Region.handleFindFailed(Region.java:420)
at org.sikuli.script.Region.wait(Region.java:511)
at org.python.proxies.sikuli.Region$Region$0.super__wait(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
org.sikuli.script.FindFailed: FindFailed: can not find Serendresuru.png on the screen.
Line 7, in file /var/folders/04/m1d41v257yxg1t1_h8n2ct5m0000gn/T/tmp-1320609112.sikuli/test.sikuli/test.py
I dont understand this issue, I tried to run the command line in a terminal, everything works properly.
Thanks in advance for your help.
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.