byTooltip static method

String byTooltip(
  1. String text
)

Returns base64 encoded string as a finder for appium-flutter-driver with the given text. https://github.com/truongsinh/appium-flutter-driver#finders

var finder = AppiumFlutterFinder.byTooltip('sample')
var element = driver.getElement(finder);
await element.click();  // Do actions against the element

Implementation

static String byTooltip(String text) {
  return base64.encode(utf8.encode(json
      .encode({'finderType': 'ByTooltipMessage', 'text': text}).toString()));
}