Future<String> takeScreenshot(World world) async { final bytes = await (world as FlutterWorld).appDriver.screenshot(); return base64Encode(bytes); }