sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #01407
[Question #146092]: errorin running sikuli script from command line
New question #146092 on Sikuli:
https://answers.launchpad.net/sikuli/+question/146092
i have written a sikuli script in the sikuli ide to perform a search operation in a browser and i ve saved it as "search.sikuli" in a directory named mysikdir ,i ve given the script below and i tried running it from command line:-
from __future__ import with_statement
from sikuli.Sikuli import *
openApp("C:\Program Files\Internet Explorer\iexplore.exe")
wait(10)
find(123.png )
type("times.com")
type(Key.ENTER)
wait(15)
type( ,"hello")
find( 125.png)
click(192.png )
wait(15)
from the command line(windows xp) i typed C:\Program Files\mysikdir> java -jar "C:\Program Files\Sikuli X\sikuli-script.jar" search.sikuli.it opens the browser and then i get the following error
ScreenMatchProxy loaded.
VDictProxy loaded.
Win32Util loaded.
ScreenMatchProxy loaded.
[sikuli] type "times.com", mod: (0)
[sikuli] type "
", mod: (0)
Exception in thread "main" Traceback (most recent call last):
File "C:\Program Files\MYSIK\r1.sikuli\r1.py", line 10, in <module>
y=find("1297607550375.png")
File "C:\Program Files\Sikuli\sikuli-script.jar\Lib\sikuli\Region.py", line 59
, in find
Line 14, in file C:\Program Files\MYSIK\r1.sikuli\r1.py
at edu.mit.csail.uid.Region.wait(Region.java:240)
at org.python.proxies.sikuli.Region$Region$1.super__wait(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
edu.mit.csail.uid.FindFailed: FindFailed: 1297607550375.png can't be found.
Line 14, in file C:\Program Files\MYSIK\r1.sikuli\r1.py
pls leme know wats the error.do i have to include something or any other correction in the code and my method of running of the script
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.