I am trying to locate an image using Sikul and I am very new to Sikuli. Here is the code that I have written:
Try{
Pattern pattern = new Pattern("Imgs\\search1.PNG");
Match m = s.find(pattern.similar(50));
System.out.println(m);
s.click(m);}
catch (FindFailed e) {
System.out.println ("Image not matched");
Reporter.log("No domain chosen<br>");
//ScreenShot.screenShot(testName);
Assert.fail("Domain not selected");
e.printStackTrace();
} catch (InterruptedException e) {
The output I am getting as
catch (FindFailed e) {
System.out.println ("Image not matched");
Reporter.log("No domain chosen<br>");
//ScreenShot.screenShot(testName);
Assert.fail("Domain not selected");
e.printStackTrace();
} catch (InterruptedException e) {
e.printStackTrace();
}
Another error I got is:
Image not located in the disk.
Kindly help. Thanks.