captureElementScreenshotAsList method

Future<List<int>> captureElementScreenshotAsList(
  1. WebElement element
)

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

Implementation

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