captureElementScreenshotAsBase64 method

Future<String> captureElementScreenshotAsBase64(
  1. WebElement element
)

Take a screenshot of the specified element as PNG and return it as base64-encoded string.

Implementation

Future<String> captureElementScreenshotAsBase64(WebElement element) =>
    _client.send(_handler.core.buildElementScreenshotRequest(element.id),
        _handler.core.parseScreenshotResponse);