public void makeScreenshotForPhantom(String picName) { ThumbnailGenerator tg = new ThumbnailGenerator(driver); tg.setSize(1200, 800); // tg.setBackgroundColor("#fff"); try { tg.saveThumbnail("log.jpg"); } catch (IOException ioe) { Log4Test.info("It was not possible make a login screenshot"); } }