If you choose the
FILE format, it writes the data into a
.png file, which will be deleted once the JVM is killed. So, you should always copy that file into a safe location so that it can be used for later reference.
Saving screenshot when using takesScreenshot
Share this highlighthttp://www.safaribooksonline.com/a/selenium-webdriver-practical/62674/