I need to capture the whole webpage not only the visible part. Is it possible?
Could you please alter my code so that my code can scroll and capture the entire webpage.
it is explained in the videos how to scroll a webpage.
and after that capture again.
using this code
[code:1rabqr4g]File srcFile = ((TakesScreenshot)driver).getScreenshotAs(OutputType.FILE);
FileUtils.copyFile(srcFile, new File("C:\\Users\\Vishvambruth JT\\Desktop\\FlipKart.jpg")); [/code:1rabqr4g]
look at this q/a to scroll
http://stackoverflow.com/questions/12293158/page-scroll-up-or-down-in-selenium-webdriver-selenium-2-using-java