3940414243444546474849
mouse.hover(Relative.to(innerRegion).bottomRight().getScreenLocation()); mouse.hover(Relative.to(innerRegion).bottomLeft().getScreenLocation()); // find the dog and click on it ScreenRegion dog = innerRegion.find(new ImageTarget(Images.Dog)); mouse.click(dog.getCenter()); c.hide(); }
3435363738394041
Canvas canvas = new DesktopCanvas(); canvas.addLabel(r, "Hello World").display(3); // Click the center of the found target Mouse mouse = new DesktopMouse(); mouse.click(r.getCenter()); } }