activeElement property

WebElement? activeElement

The currently focused element, or the body element if no element has focus.

Implementation

WebElement? get activeElement {
  final id = _client.send(
      _handler.elementFinder.buildFindActiveElementRequest(),
      _handler.elementFinder.parseFindActiveElementResponse);
  if (id != null) {
    return WebElement(this, _client, _handler, id, this, 'activeElement');
  }
  return null;
}