PopupWindow$PopupViewContainer(@xxxxxxxx)
--ListPopupWindow$DropDownListView(@yyyyyyyy)
--RelativeLayout(@zzzzzzz)
ImageView
TextView
--RelativeLayout(@aaaaaaaa)
ImageView
TextView
--RelativeLayout(@aaaaaaaa)
ImageView
TextView
I want to know how to access the the TextView in RelativeLayout 2 using espresso android automation, as @id
is not present and values are assigned dynamically.
The above is the dropdown list and I want to click second choice.
e.g like when we search item in any search box we get list populated. And I want to click the second one in the list populated. All the element id's are dynamic.