← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #661746]: outside any screen - subsequent actions might not work as expected Issue.

 

Question #661746 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/661746

    Status: Needs information => Open

Maniraj gave more information on the question:
Hi,

Which operating system, which version of Sikuli are you using? - MAC sierra
Is this a system with one or more than one screen? - Yes(2 screens).
What screen size(s) does your system have? - 2560*1440 and 1440*900 these 2 sizes 
How do you define the region in your script? - Whole page as screenshot and set as region.

I am having 40 images for Max image this error is coming but image is
found correctly.

Note: i am not refer screen in my script i am taking whole page as
screenshot and find image in that screenshot to just verify it is
present or not in page.

Below is code For Reference:

    String imagePath = "/Users/aathi/Desktop/websitestab/temp/"+imageName;
    Thread.sleep(2000);
    BufferedImage regionsetimage = ScreenCapture(driver,imageName);
    Finder window = new Finder(regionsetimage);
    Pattern testImage = new Pattern(imagePath); 
    window.find(testImage.similar((float) 0.9));
    Match found = null;
    if (window.hasNext())
    {
      found = window.next();
      System.out.println(imageName + " Image found");
    }
    else
    {
      System.out.println(imageName + " Image Not found");
    }
  }

Thankyou in Advance..

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