sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #55228
[Question #691315]: Sikuli-script.jar or sikuli file is not identifying images if arguments are being passed at runtime
New question #691315 on Sikuli:
https://answers.launchpad.net/sikuli/+question/691315
I am trying to pass arguments at run time to my script so that it will fill the data on run time. But the problem is when I am trying to run my script through CMD using java -jar <jar file> or runsikulix.cmd -r <.sikuli> file then it is giving FindFailed error.
what am I doing wrong here.
Below is the sample of my work :
import sys
import traceback
try :
siebelURL = "Not"
wait("IEBrowser.png",10)
click("IECancelBtn.png")
print siebelURL
except Exception as e:
print(e.message)
Command I have tried in CMD :
C:\Users\t_loboak\Desktop>java -jar Test_sikuli.jar post
C:\Users\t_loboak\Desktop>Sikuli\runsikulix.cmd -r C:\Users\t_loboak\Desktop\SyncToSAP.sikuli --args test
but both the times I got the same response which is :
+++ running this Java
java version "1.8.0_241"
Java(TM) SE Runtime Environment (build 1.8.0_241-b07)
Java HotSpot(TM) 64-Bit Server VM (build 25.241-b07, mixed mode)
+++ trying to run SikuliX
+++ using: -Xms64M -Xmx512M -Dfile.encoding=UTF-8 -Dsikuli.FromCommandLine -jar C:\Users\t_loboak\Desktop\Sikuli\sikulix.jar -r C:\Users\t_loboak\Desktop\SyncToSAP.sikuli --args test
[error] script [ C:\Users\t_loboak\Desktop\SyncToSAP.sikuli ] stopped with error at line --unknown--
[error] Error caused by: Traceback (most recent call last):
File "C:\Users\t_loboak\Desktop\SyncToSAP.sikuli\SyncToSAP.py", line 6, in <module>
click("IECancelBtn.png")
File "C:\Users\t_loboak\Desktop\SyncToSAP.sikuli\SyncToSAP.py", line 6, in <module>
click("IECancelBtn.png")
Line 2761, in file Region.java
at org.sikuli.script.Region.wait(Region.java:2761)
at org.sikuli.script.Region.find(Region.java:2326)
at org.sikuli.script.Region.getLocationFromTarget(Region.java:3220)
at org.sikuli.script.Region.click(Region.java:3718)
at org.sikuli.script.Region.click(Region.java:3703)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
org.sikuli.script.FindFailed: FindFailed: IECancelBtn.png: (31x30) in S(0)[0,0 1280x720] E:Y, T:3.0
Line 2761, in file Region.java
I even tried it without passing arguments in script still I am getting same error.
please help in this
--
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.