How to take Full page Screenshot using Selenium ? package SeleniumLearn.COM; import java.io.File; import java.text.DateFormat; import java.text.SimpleDateFormat; import java.util.Date; import org.apache.commons.io.FileUtils; import org.openqa.selenium.OutputType; import org.openqa.selenium.TakesScreenshot; import org.openqa.selenium.WebDriver; import org.openqa.selenium.firefox.FirefoxDriver; import org.testng.annotations.Test; //import com.thoughtworks.selenium.Selenium; import org.testng.annotations.BeforeTest; import org.testng.annotations.AfterTest; Read more about How to take Full page Screenshot using Selenium ?