From a0784053499d5fbdd066f2bd456353c0addbd08d Mon Sep 17 00:00:00 2001 From: darshankawar <67046386+darshankawar@users.noreply.github.com> Date: Tue, 8 Dec 2020 01:20:54 +0530 Subject: [PATCH] Link the API docs on waitFor() to the docs for runUnsynchronized() (#69761) --- packages/flutter_driver/lib/src/driver/driver.dart | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/packages/flutter_driver/lib/src/driver/driver.dart b/packages/flutter_driver/lib/src/driver/driver.dart index 02c59776ab..6df6655b24 100644 --- a/packages/flutter_driver/lib/src/driver/driver.dart +++ b/packages/flutter_driver/lib/src/driver/driver.dart @@ -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 waitFor(SerializableFinder finder, { Duration timeout }) async { await sendCommand(WaitFor(finder, timeout: timeout)); }