I have a page that is really complex to take a clean screenshot: http://www.carfax.com/VehicleHistory/p/Report.cfx?partner=ECL_0&vin=WBA4B1C5XFD418296
I tried this :
File scrFile = ((TakesScreenshot) driver)
.getScreenshotAs(OutputType.FILE);
try {
FileUtils
.copyFile(scrFile, new File(Vin_Name + ".png"));
} catch (IOException e) {
e.printStackTrace();
}
but didn't work at all, i also tried firefox addon to take this screenshot but it is not taking the entire page and i don't know why. how can i solve this problem ?