use the SikuliX IDE for capturing and have a look at: http://sikulix-2014.readthedocs.io/en/latest/scripting.html#image-search-path-where-sikulix-looks-for-image-files
I know about the problem with external capture tools, but I will only address that in version 2. BTW: on Mac 10.9+ I recommend to use version 1.1.1 (http://sikulix.com) ** Summary changed: - Image capture not working on Mac 10.11 with sikuli on Java and selenium + [1.1.0] Mac 10.11 with Java and selenium: images captured with external tools cannot be used (FindFailed) --- use the SikuliX IDE for capturing ** Changed in: sikuli Status: New => Won't Fix ** Changed in: sikuli Status: Won't Fix => In Progress ** Changed in: sikuli Importance: Undecided => Low ** Changed in: sikuli Assignee: (unassigned) => RaiMan (raimund-hocke) ** Changed in: sikuli Milestone: None => 2.0.0 -- You received this bug notification because you are a member of Sikuli Drivers, which is subscribed to Sikuli. https://bugs.launchpad.net/bugs/1597119 Title: [1.1.0] Mac 10.11 with Java and selenium: images captured with external tools cannot be used (FindFailed) --- use the SikuliX IDE for capturing Status in Sikuli: In Progress Bug description: Hi, I am currently analyzing some GUI tools and was keen to use Sikuli. I have Mac 10.11. I added the sikulixapi.jar (1.1.0) in my Eclipse IDE so that i can automated my project using Java and selenium. I captured the images on MAC using Grab,Apowersoft mac sreenshot etc…and kept the image (jpg/png) in a separate folder. Every time i am getting the error when I run the code. Exception in thread "main" FindFailed: can not find P(/Users/divyasharma/Desktop/SikuliImages/icon1.png) S: 0.7 in S(0)[0,0 1440x900] Line 2189, in file Region.java at org.sikuli.script.Region.handleFindFailedShowDialog(Region.java:2189) at org.sikuli.script.Region.handleFindFailed(Region.java:2134) at org.sikuli.script.Region.wait(Region.java:2546) at org.sikuli.script.Region.find(Region.java:2205) at org.sikuli.script.Region.getLocationFromTarget(Region.java:3067) at org.sikuli.script.Region.click(Region.java:3534) at org.sikuli.script.Region.click(Region.java:3519) at ClickIcon.main(ClickIcon.java:12) Below is the snippet that i am trying to run: public static void main(String[] args) throws FindFailed { Screen screen = new Screen(); Pattern pattern = new Pattern("/Users/divyasharma/Desktop/SikuliImages/icon1.png"); screen.click(pattern); System.out.println("I AM DONE"); } I wondered if Sikuli cannot be used and using Sikuli IDE, I was successfully able to run the script in Sikuli IDE as it captures its own images and saves it in .sikuli file. I thought of reusing the images but then i cant import .sikuli images in my java file. Can you please help me where i could be going wrong. Thanks, ~Divya To manage notifications about this bug go to: https://bugs.launchpad.net/sikuli/+bug/1597119/+subscriptions _______________________________________________ Mailing list: https://launchpad.net/~sikuli-driver Post to : [email protected] Unsubscribe : https://launchpad.net/~sikuli-driver More help : https://help.launchpad.net/ListHelp

