findByRole

Future<DomNode> findByRole(

  1. String role, {
  2. String? name,
  3. Duration timeout = const Duration(seconds: 1),
})

Waits for element with role to appear.

Implementation

Future<DomNode> findByRole(
  String role, {
  String? name,
  Duration timeout = const Duration(seconds: 1),
}) => _waitFor(() => getByRole(role, name: name), timeout);