Try catch use flutter gherkin
Nov 4, 2022
static Future<void> waitFor(
FlutterDriver driver, SerializableFinder finder) async {do {
try {
await driver.waitFor(finder, timeout: timeout);
await FlutterDriverUtils.waitForFlutter(driver, timeout: timeout);
} catch (error) {
throw ('Element does not exists => $error');
}}
index ++
} while(true);