sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #44589
[Question #661057]: Hi I am getting the below error when sikulix is used in eclipse
New question #661057 on Sikuli:
https://answers.launchpad.net/sikuli/+question/661057
import org.sikuli.script.*;
import org.sikuli.script.Screen;
public class ab
{
public static void main(String[] args) throws Exception {
//Debug.setDebugLevel(3);
Screen s = new Screen();
s.click("imgs/Capture.PNG");
}
}
error:
13:36:02:704 >> Loading HP UFT Java Support (version 12.0.0.0) (SUN 1.7.0)
[error] Image: could not be loaded: file:/C:/Users/xw66/workspace/Sikul/Capture.PNG
[error] Image: Image not valid, but TextSearch is switched off!
Exception in thread "main" FindFailed: imgs/Capture.PNG: (408x284) in S(0)[0,0 1366x768] E:Y, T:3.0
Line 2759, in file Region.java
at org.sikuli.script.Region.wait(Region.java:2759)
at org.sikuli.script.Region.find(Region.java:2336)
at org.sikuli.script.Region.getLocationFromTarget(Region.java:3213)
at org.sikuli.script.Region.click(Region.java:3698)
at org.sikuli.script.Region.click(Region.java:3683)
at ab.main(ab.java:16)
Picked up JAVA_TOOL_OPTIONS: -agentlib:jvmhook
Picked up _JAVA_OPTIONS: -Xrunjvmhook -Xbootclasspath/a:"C:\Program Files (x86)\HP\Unified Functional Testing\bin\java_shared\classes";"C:\Program Files (x86)\HP\Unified Functional Testing\\bin\java_shared\classes\jasmine.jar"
Picked up JAVA_TOOL_OPTIONS: -agentlib:jvmhook
--
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.