findByTestId

Future<DomNode> findByTestId(

  1. String testId, {
  2. Duration timeout = const Duration(seconds: 1),
})

Waits for element with test ID to appear.

Implementation

Future<DomNode> findByTestId(
  String testId, {
  Duration timeout = const Duration(seconds: 1),
}) => _waitFor(() => getByTestId(testId), timeout);