I need to take the screenshot of the page(web application) including Windows Taskbar in Selenium using java. Can anyone please tell me how to do it.
I am using below code to take the screenshot however i need to take a screenshot of Taskbar too. Basically i want to recreate "Print Screen (PrntSc)" functionality using Selenium.
File scrFile = ((TakesScreenshot)driver).getScreenshotAs(OutputType.FILE);
FileUtils.copyFile(scrFile, new File("C:\\screenshot.png"));