Please suggest the way to take screenshot of URL/HTMLFile in java. I am trying with LOBO Browser and able to Open URL in jframe but not able to take screenshot of content inside jframe. Please check code sample
import org.lobobrowser.gui.FramePanel;
public LoboTestFrame() throws Exception {
FramePanel framePanel = new FramePanel();
this.getContentPane().add(framePanel);
framePanel.navigate("http://en.wikipedia.org/wiki/Main_Page");
}
Not able to capture loaded content as image
Yes. Combine
Desktop#browse()
, mentioned here, withRobot#createScreenCapture()
, illustrated here and here.