waitFor method

Future<void> waitFor (
  1. SerializableFinder finder,
  2. {Duration timeout}
)

Waits until finder locates the target.

Implementation

Future<void> waitFor(SerializableFinder finder, { Duration timeout }) async {
  await _sendCommand(WaitFor(finder, timeout: timeout));
}