captureElementScreenshotAsList method

Uint8List captureElementScreenshotAsList(
  1. WebElement element
)

Take a screenshot of the specified element as PNG as list of uint8.

Implementation

Uint8List captureElementScreenshotAsList(WebElement element) {
  final base64Encoded = captureElementScreenshotAsBase64(element);
  return base64.decode(base64Encoded);
}