sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #08223
[Question #185254]: Facing FindFailed: can not find Pattern("E:\TestSikuli\nav.JPG").similar(0.7) on the screen. Line ?, in File ? while using sikuli in java using eclipse
New question #185254 on Sikuli:
https://answers.launchpad.net/sikuli/+question/185254
I am trying to execute the following block of code
Pattern imgPattern= new Pattern("E:\\TestSikuli\\nav.JPG");
Rectangle rect= new Rectangle(Toolkit.getDefaultToolkit().getScreenSize());
Region region= new Region(rect);
Screen screen=(Screen) region.getScreen();
I am getting the following exception FindFailed: can not find Pattern("E:\TestSikuli\nav.JPG").similar(0.7) on the screen.
Line ?, in File ?
at org.sikuli.script.Region.handleFindFailed(Region.java:420)
at org.sikuli.script.Region.wait(Region.java:511)
at org.sikuli.script.Region.find(Region.java:381)
at org.sikuli.script.Region.getLocationFromPSRML(Region.java:1129)
at org.sikuli.script.Region.click(Region.java:606)
at org.sikuli.script.Region.click(Region.java:593)
at com.SampleRead.main(SampleRead.java:37)
**I am using windows7 , Java 6 .
Please let me know if anything is needed .
Any help in this regard is very much appreciated .
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.