captureElementScreenshotAsList method Null safety
- WebElement element
Take a screenshot of the specified element as PNG as list of uint8.
Implementation
List<int> captureElementScreenshotAsList(WebElement element) {
final base64Encoded = captureElementScreenshotAsBase64(element);
return base64.decode(base64Encoded);
}