Beispiel #1
0
 /** Perform a capture of the active window */
 public void active() {
   try {
     upload(
         new ImageUpload(
             ScreenshotUtil.capture(
                 WindowUtilProvider.getWindowUtil().getActiveWindow().getBounds())));
   } catch (final Exception e) {
     logger.log(Level.SEVERE, "Unable to take the active window screenshot", e);
     showException(e);
   }
 }
Beispiel #2
0
 /** Perform a full screenshot action */
 public void full() {
   upload(new ImageUpload(ScreenshotUtil.capture(DisplayUtil.getRealScreenSize())));
 }