ashot
ashot copied to clipboard
Issue with Chrome driver
Hi this is my command : Screenshot screenshot = new AShot().shootingStrategy(ShootingStrategies.viewportPasting(100000)).takeScreenshot(driver); ImageIO.write(screenshot.getImage(),"PNG",new File(locationPath+imageNameWithExtension));
Im getting this overlapped image (attached ) any help is appreciated
Also experiencing this issue
Faced with this problem too. How to deal with that?
I also faced this problem on Chrome. But the full image is fine if we run in headless mode:
ChromeOptions options = new ChromeOptions(); options.setHeadless(true); driver = new ChromeDriver(options);