You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I feel stupid to ask this but how do i find an element that is a child of a Type?
fyi: In my project i cant use Keys atm or search by text/labels because the language can be different.
I'm setting my finders in the beginning of my test and the faulty code looks like this:
final bottomNavigationBar = $(BottomNavigationBar).first;
final searchNavigationTile = bottomNavigationBar.$(BottomNavigationBarItem).first;
final ticketNavigationTile = bottomNavigationBar.$(BottomNavigationBarItem).at(1);
final loginNavigationTile = bottomNavigationBar.$(BottomNavigationBarItem).at(2);
final moreNavigationTile = bottomNavigationBar.$(BottomNavigationBarItem).at(3);
The test finds the bottomNavBar easy enough and then my thinking is that i use that finder to find the 4 elements inside the bar. I'm a tester so i can't delevop in flutter to change anything. I have to work with what i have and the widget tree (lets start at BottomNavigationBar) has alot of children i have no idea what they do, until it reaches Row that had the four BottomNavigationTile's.
Im probably looking for the wrong type, but my question, and the point of this post, is how to find child element with Patrol syntax?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi, I feel stupid to ask this but how do i find an element that is a child of a Type?
fyi: In my project i cant use Keys atm or search by text/labels because the language can be different.
I'm setting my finders in the beginning of my test and the faulty code looks like this:
The test finds the bottomNavBar easy enough and then my thinking is that i use that finder to find the 4 elements inside the bar. I'm a tester so i can't delevop in flutter to change anything. I have to work with what i have and the widget tree (lets start at BottomNavigationBar) has alot of children i have no idea what they do, until it reaches Row that had the four BottomNavigationTile's.
Im probably looking for the wrong type, but my question, and the point of this post, is how to find child element with Patrol syntax?
Beta Was this translation helpful? Give feedback.
All reactions