Selenium: Not able to take complete page screenshot using aShot library
问题 Am trying to take the complete page screenshot both horizontally and vertically using Firefox gecko driver and aShot Library. However, the results are not as expected. Take a look: driver.get("https://google.com"); Screenshot fpScreenshot = new AShot().shootingStrategy(ShootingStrategies.viewportPasting(1000)).takeScreenshot(driver); ImageIO.write(fpScreenshot.getImage(),"JPEG",new File("FullPageScreenshot.jpg")); Looked into a lot of variants but nothing is working. Interestingly, when I try