How to get a full page screenshot with Java-Selenide?

How can I get a full page screenshot with Java-Selenide?

Hello Russell,

Here’s the syntax to capture the screenshot:

File screenshotFile = ((TakesScreenshot)driver).getScreenshotAs(OutputType.FILE);

To store the taken screenshot into a file, the below statement is used:

FileUtils.copyFile(screenshotFile, new File("path of the file you want to save the screenshot to"));