[1.1.1] Finder(shot).find(image): gives warning: outside any screen - subsequent ...

Asked by Maniraj

is a bug now - see related bug

-------------------------------------------------

Hi,

while i am running script getting error like this for some images but it is finding that images too.

Error: outside any screen - subsequent actions might not work as expected.

Help me out to resolve this issue and why it is happening.

Question information

Language:
English Edit question
Status:
Solved
For:
SikuliX Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Maniraj (aathimaniraj) said :
#1

Help me out to resolve..

Revision history for this message
Maniraj (aathimaniraj) said :
#2

Hi still i am facing issue how to face this issue...

Viwait.png Image Not found
[error] Region(2170,1344,40,38) outside any screen - subsequent actions might not work as expected
Currentpageurl.png Image found
[error] Region(2372,1335,50,42) outside any screen - subsequent actions might not work as expected
Newvisitor.png Image found
[error] Region(2176,1398,34,38) outside any screen - subsequent actions might not work as expected
Url.png Image found
[error] Region(2538,218,50,54) outside any screen - subsequent actions might not work as expected
Notes.png Image found
[error] Region(2622,220,32,48) outside any screen - subsequent actions might not work as expected
Info.png Image found
[error] Region(2682,220,56,50) outside any screen - subsequent actions might not work as expected
Chat.png Image found
[error] Region(2284,406,36,36) outside any screen - subsequent actions might not work as expected

Can anyone tell how to resolve this issue...

Revision history for this message
Manfred Hampl (m-hampl) said :
#3

Which operating system, which version of Sikuli are you using?
Is this a system with one or more than one screen?
What screen size(s) does your system have?
How do you define the region in your script?

Revision history for this message
Maniraj (aathimaniraj) said :
#4

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..

Revision history for this message
Maniraj (aathimaniraj) said :
#5

Help me out.. please

Revision history for this message
RaiMan (raimund-hocke) said :
#6

Just ignore it:
The reason might be, that you are currently working on a smaller screen, than that where the shots where taken.

The warning is only for situations, where you plan to click later on the matches - but this is not planned in your situation.

Nevertheless: I have to check, why this warning comes up in your situation - I think need not be.

Revision history for this message
RaiMan (raimund-hocke) said :
#7

is a bug now - see related bug

Revision history for this message
Maniraj (aathimaniraj) said :
#8

ok Thanks Raiman for your help.