You might wanna specify location to your external folder with the images, unless you store images in the same folders as SikuliX' scripts. I am taking images with the side apps and it works for me:
Option 1. Either store your images in the same folder as you scriptName.py Option 2. Use addImagePath(a-new-path) function to define location to your images. Docs: http://doc.sikuli.org/globals.html -- 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

