getText method

Future<String> getText(
  1. FlutterDriver driver,
  2. SerializableFinder finder,
  3. {Duration timeout = const Duration(seconds: 30)}
)

Implementation

static Future<String> getText(
  FlutterDriver driver,
  SerializableFinder finder, {
  Duration timeout = const Duration(seconds: 30),
}) async {
  await FlutterDriverUtils.waitForFlutter(driver, timeout: timeout);
  final text = await driver.getText(finder, timeout: timeout);
  return text;
}