title: How to capture Screenshot in Selenium2 using Java, need to capture popup window with its parent window(Browser) when browser is minimized
body: <p>I tried using <code>Robot</code> class with <code>BufferedImage screenImage = robot.createScreenCapture(screenRect)</code> but it captures the active Screen only.
  Consider the Browser(Firefox) launched by Webdriver is minimized then this method doesn't capture Browser screen, instead it captures the active screen.</p>