findElement method
Finds a native UI element and returns its properties as a map.
Implementation
Future<Map<String, dynamic>?> findElement({
String? name,
String? className,
String? automationId,
}) async {
config.logger('findElement(name: $name)');
final result = await _channel
.invokeMapMethod<String, dynamic>('findElement', {
'name': ?name,
'className': ?className,
'automationId': ?automationId,
'timeoutMs': config.findTimeout.inMilliseconds,
});
return result;
}