appium-flutter-driver
appium-flutter-driver copied to clipboard
How to validate text value of the TextFormField?
trafficstars
I have element like this
As you can see, there is a label for text field called "Full Name" and name value itself. How I can validate that this field contains exactly this value ?
as I understand only way to do it now is to use nativeContext and using xPath locate this element somehow using text, right ? ...
have actually found the text value, but am I able to get it and validate ?
Look for a descendant widget of your TextFormField of type EditableText - does one exist? In our app, that's the way I'm getting the value of one of these text entry widgets after it has been sent text.