Link the API docs on waitFor() to the docs for runUnsynchronized() (#69761)

This commit is contained in:
darshankawar
2020-12-08 01:20:54 +05:30
committed by GitHub
parent d35dd9f8a6
commit a078405349

View File

@@ -205,6 +205,14 @@ abstract class FlutterDriver {
}
/// Waits until [finder] locates the target.
///
/// The [finder] will wait until there is no pending frame scheduled
/// in the app under test before executing an action.
///
/// See also:
///
/// * [FlutterDriver.runUnsynchronized], which will execute an action
/// with frame sync disabled even while frames are pending.
Future<void> waitFor(SerializableFinder finder, { Duration timeout }) async {
await sendCommand(WaitFor(finder, timeout: timeout));
}