On Mon, 19 Aug 2024 09:51:55 GMT, Tejesh R <t...@openjdk.org> wrote: > > > > @TejeshR13 , no, it just compares the Button renderings only, nothing > > > > else. `bimage = robot.createScreenCapture(new Rectangle(buttonLoc.x, > > > > buttonLoc.y, button.getWidth(), button.getHeight()));` > > > > > > > > > Which is exactly in the image right? > > > > > > Yes, your images contain the Windows taskbar also, but I'm not sure why it > > is taking that also when we capture the screen based on button's > > dimensions, could it be because of button.getWidth() and button.getHeight() > > returning wrong values? > > Not wrong values, its just that the button is slightly behind the window > icons. Better to move the button up so that it wont mix up with icon.
Ohh got it, thanks for the suggestion, I will move it up and try. ------------- PR Comment: https://git.openjdk.org/jdk/pull/20532#issuecomment-2296174348