public static BufferedImage takeScreenShotAsImage(WebElement iframe, WebElement element) {
    return screenshots.takeScreenshotAsImage(driver(), iframe, element);
  }
public static BufferedImage takeScreenShotAsImage ( WebElement iframe , WebElement element ) { return screenshots . takeScreenshotAsImage ( driver ( ) , iframe , element ) ; }
Take screenshot of WebElement/SelenideElement in iframe
for partially visible WebElement/Selenide horizontal scroll bar will be present
@return buffered image