MachinePublishers / jBrowserDriver

A programmable, embeddable web browser driver compatible with the Selenium WebDriver spec -- headless, WebKit-based, pure Java
Other
809 stars 143 forks source link

invoke getScreenshotAs on WebElement return null #256

Open colababy opened 7 years ago

colababy commented 7 years ago
driver.get("http://mail.163.com/");
WebElement element = driver.findElement(By.cssSelector("header.header"));
 File screenShot = element.getScreenshotAs(OutputType.FILE);

code above gets warning of 'Screenshot not supported on jBrowserDriver WebElements'. is there a way to capture an WebElement?