captureElementScreenshotAsList method

Future<Uint8List> captureElementScreenshotAsList(
  1. WebElement element
)

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

Implementation

Future<Uint8List> captureElementScreenshotAsList(WebElement element) async {
  final base64Encoded = captureElementScreenshotAsBase64(element);
  return base64.decode(await base64Encoded);
}