Question #248970 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/248970
laxmi posted a new comment:
Hi RaiMan,
I am trying to click on an image using sikuli screen, but it is throwing
findfailed error:
public class SikuliGameLoad {
@Test
public static void main(String[] args) {
System.setProperty("webdriver.chrome.driver",
"/Applications/setup/chromedriver");
System.out.println(System.getProperty("webdriver.chrome.driver"));
WebDriver driver = new ChromeDriver();
driver.get("https://www.google.com");
driver.manage().window().maximize();
Screen screen = new Screen();
try{
Pattern image = new
Pattern("/Users/laxmi.patlolla/Documents/workspace/Web/imgs/gmail.png");
screen.wait(image,20);
screen.doubleClick(image);
}catch( FindFailed e){
e.printStackTrace();
}
}
}
able to find the image but not throw application.
Error:
/Applications/setup/chromedriver
Starting ChromeDriver 2.31.488774 (7e15618d1bf16df8bf0ecf2914ed1964a387ba0b) on
port 28938
Only local connections are allowed.
FindFailed: can not find
P(/Users/laxmi.patlolla/Documents/workspace/Web/imgs/gmail.png) S: 0.7 on the
screen.
Line 1574, in file Region.java
at org.sikuli.script.Region.handleFindFailed(Region.java:1574)
at org.sikuli.script.Region.wait(Region.java:1682)
at com.WebSite.SikuliGameLoad.main(SikuliGameLoad.java:23)
--
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.
_______________________________________________
Mailing list: https://launchpad.net/~sikuli-driver
Post to : [email protected]
Unsubscribe : https://launchpad.net/~sikuli-driver
More help : https://help.launchpad.net/ListHelp