captureElementScreenshotAsBase64 method

String captureElementScreenshotAsBase64(
  1. WebElement element
)

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

Implementation

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