activeElement property
Future<AppiumWebElement>
get
activeElement
The currently focused element, or the body element if no element has focus.
Implementation
Future<AppiumWebElement> get activeElement async {
final id = await _client.send(
_handler.elementFinder.buildFindActiveElementRequest(),
_handler.elementFinder.parseFindActiveElementResponse);
return getElement(id, this, 'activeElement');
}