appium-flutter-driver icon indicating copy to clipboard operation
appium-flutter-driver copied to clipboard

How to validate text value of the TextFormField?

Open Vladeezyy opened this issue 1 year ago • 3 comments
trafficstars

I have element like this image

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 ?

Vladeezyy avatar Apr 17 '24 14:04 Vladeezyy

as I understand only way to do it now is to use nativeContext and using xPath locate this element somehow using text, right ? ...

Vladeezyy avatar Apr 22 '24 13:04 Vladeezyy

have actually found the text value, but am I able to get it and validate ? image

Vladeezyy avatar Apr 23 '24 19:04 Vladeezyy

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.

AYASGray avatar Jul 02 '24 14:07 AYASGray