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

no easy way to get by type when it returns multiple elements

Open DeanPack opened this issue 3 years ago • 2 comments

I have a login screen with two text fields. one for an email and one for a password. In my flutter tests I enter this await tester.enterText(find.byType(TextField).first, email); trying to get .first from a appium flutter finder makes it return undefined.

DeanPack avatar Aug 11 '22 20:08 DeanPack

on my app .first on the find by type returns the email field, and if I do finder[1] I get my password field.

DeanPack avatar Aug 11 '22 21:08 DeanPack

Yes, Even i am facing difficulties while the finder returns multiple elements . in flutter driver i easy specify the first element by finder.first but here i am feeling fuzzy and stuck.

badri001 avatar Nov 30 '22 05:11 badri001