← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #243918]: Unable to run Sikuli Java project from Maven test command

 

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

    Status: Open => Answered

RaiMan proposed the following answer:
@comment #9: NO

@comment #9
the image CtrlAltDelScreen.png is not visible for Sikuli in the Maven case.

in your code you restrict the search to the focused window, with is in case 
eclipse:
Screen.capture: java.awt.Rectangle[x=0,y=0,width=1280,height=970]
(seems to be maximized window)

Maven:
Screen.capture: java.awt.Rectangle[x=283,y=104,width=625,height=738]
which is much smaller 

So it might be, that you get the wrong window, which gives you the wrong
region, that does not contain the image ;-)

-- 
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.