appium / appium-flutter-driver

Appium Flutter Driver is a test automation tool for Flutter apps on multiple platforms/OSes. Appium Flutter Driver is part of the Appium mobile test automation tool maintained by community
MIT License
463 stars 185 forks source link

Richtext #297

Open Rajapriyan-leanix opened 2 years ago

Rajapriyan-leanix commented 2 years ago

Can we able to find a element byText which is a RichText Widget

KazuCocoa commented 2 years ago

Can it do with https://api.flutter.dev/flutter/flutter_driver/flutter_driver-library.html ? If not, perhaps this driver cannot do it

Rajapriyan-leanix commented 2 years ago

Apologies for the delay in replay, I could able to locate the rich text widget but I need to extract the text from rich text which I couldn't able to do

julianlieow commented 1 year ago

has anyone managed to solve this?

ostandsouza commented 1 year ago

It seems like you have to add a custom finder for a RichText widget and expose it to Flutter Driver using Flutter Driver Extensions. This article should give your fair idea. https://arturkorobeynyk.medium.com/using-custom-finders-and-custom-commands-with-flutter-driver-extension-advanced-level-44df0286922b