sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #26037
[Question #248970]: find faied exception
New question #248970 on Sikuli:
https://answers.launchpad.net/sikuli/+question/248970
I am try to click on google search bar , iam using follwong code
Screen s = new Screen();
WebDriver driver = new FirefoxDriver();
driver.get("http://google.com");
driver.manage().window().maximize();
try {
Thread.sleep(2000);
} catch (InterruptedException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
Pattern pattern = new Pattern("imgs/GoogleSearchBar.png");
s.click(pattern);
s.type(pattern, "Seacrh something",0);
It is givving me error
Exception in thread "main" FindFailed: ImageFile null not found on disk
Line 1671, in file Region.java
at org.sikuli.script.Region.wait(Region.java:1671)
at org.sikuli.script.Region.find(Region.java:1590)
at org.sikuli.script.Region.getLocationFromTarget(Region.java:1991)
at org.sikuli.script.Region.click(Region.java:2197)
at org.sikuli.script.Region.click(Region.java:2181)
at FirstTest.First.main(First.java:34)
Why it not finding image,
Thanks
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.