We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Code to repro:
String url = "https://i.pinimg.com/originals/b0/09/0d/b0090d60fe925d103368baf523478ff4.png"; getWebDriver().get(url); findElement(By.tagName("img"), "image").shouldBe(visible); WebElement webElement = getWebDriver().findElement(By.tagName("img")); sleep(3000); Screenshot screenshot = new AShot() .coordsProvider(new WebDriverCoordsProvider()) .shootingStrategy(ShootingStrategies.viewportPasting(100)) .takeScreenshot(getWebDriver()); File actualFile = new File("arbit.png"); try { ImageIO.write(screenshot.getImage(), "png", actualFile); } catch (IOException e) { e.printStackTrace(); }
Final screenshot:
Version: 1.5.4
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Code to repro:
Final screenshot:
![AShot image_capture](https://user-images.githubusercontent.com/37449849/130056269-9b64e2fa-7fde-480c-99e1-20bcbbc8e5ec.PNG)
Version: 1.5.4
The text was updated successfully, but these errors were encountered: