Question #663991 on Sikuli changed:

    Status: Needs information => Open

Maniraj gave more information on the question:

public static boolean findInWholePage(WebDriver driver,String 
imageName,ExtentTest etest) throws IOException, FindFailed, InterruptedException
    String expectedimg = "imagepath" // path of image. 
    URL file_url = new URL(expectedimg);
    String uniqueID = UUID.randomUUID().toString();
    String actualimage = uniqueID+imageName;
    BufferedImage regionsetimage = screenCapture(driver,actualimage); // using 
selenium I am taking whole page screenshot and storing as buffered image.
    Finder window = new Finder(regionsetimage);
    Pattern testImage = new Pattern(file_url); 
    window.find(testImage.similar((float) 0.99));  //.exact()
    Match found = null;
    if (window.hasNext())
      found =;
      //System.out.println(imageName + " Image found");
      etest.log(LogStatus.PASS,"Expected: "+ expected + "Actual" + actual);
      return true;
      System.out.println(imageName + " Image Not found");
      etest.log(LogStatus.FAIL,"Expected: "+ expected + "Actual" + actual);
      return false;

In this inside my region (that means whole page Screenshot taken in runtime), I 
have more than 1 similar images. In this scenario can I get count of all that 
similar images ?

... would be easier to understand if you post some snippet of code.

You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.

Mailing list:
Post to     :
Unsubscribe :
More help   :

Reply via email to