title: How to take full page screenshot using AShot library through Selenium and Java
body: <p>I tried the below code for taking full page screenshot. But only the visible area is captured,</p>
  
  <pre><code>public void Fullscreen (WebDriver driver) 
  {
      try {
          final Screenshot screenshot = new AShot().shootingStrategy(ShootingStrategies.viewportPasting(1000)).takeScreenshot(driver);
          final BufferedImage image = screenshot.getImage();
          ImageIO.write(image, "PNG", new File("D:\\" + "AShot_BBC_Entire.png"));           
      } catch(Exception e){
          System.out.println(e.getMessage());
      }
  }
  </code></pre>