sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #47135
[Question #668883]: FindFailed During Spotlight Tutorial
New question #668883 on Sikuli:
https://answers.launchpad.net/sikuli/+question/668883
Hello all,
HARDWARE: MacBook Pro (Retina 15in, 2880 x 1800) with 2 additional monitors (1920 x 1080)
IDE: Eclipse
SIKULI: v1.1.2
I'm attempting to run the common "Spotlight" tutorial found here http://doc.sikuli.org/faq/030-java-dev.html. Whenever I run this, I'm met with a FindFailed error message. Specific details below.
NOTES:
- imgs folder contains both spotlight.png and spotlight-input.png
- sikulixapi.jar has been configured to the Java Build Path
MY CODE:
import org.sikuli.script.*;
import org.sikuli.script.FindFailed;
import org.sikuli.script.ImagePath;
import org.sikuli.script.Screen;
public class test {
public static void main(String[] args) {
Screen s = new Screen();
try{
s.click("imgs/spotlight.png");
s.wait("imgs/spotlight-input.png");
s.click();
s.write("hello world#ENTER.");
}
catch(FindFailed e){
e.printStackTrace();
}
}
}
MY ERROR:
FindFailed: imgs/spotlight.png: (70x42) in S(0)[0,0 1440x900] E:Y, T:3.0
Line 2782, in file Region.java
at org.sikuli.script.Region.wait(Region.java:2782)
at org.sikuli.script.Region.find(Region.java:2329)
at org.sikuli.script.Region.getLocationFromTarget(Region.java:3238)
at org.sikuli.script.Region.click(Region.java:3736)
at org.sikuli.script.Region.click(Region.java:3721)
at sikuli2.test.main(test.java:14)
--
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.