0

How can I list the elements from TableView using REPL? I need all the elements with class UIAccessibilityElementMockView. These are the elements that are visible after tree command: Xamarin_Tree

I've tried already the following commands:

app.Query(x=>x.Class("UITableView").Child())
app.Query(x=>x.Class("UITableView").Child("UITableViewCell"))

Any help would be greatly appreciated.

user62171
  • 641
  • 7
  • 18
miskegm
  • 55
  • 1
  • 9

2 Answers2

1

After investigating a while, I managed to solve this one:

app.Query(x => x.Class("UITableViewCell").Descendant("UIBUttonLabel"))

This query is returning the list off all the entities I need.

miskegm
  • 55
  • 1
  • 9
0

Have you tried app.Query(c => c.Marked("UIAccessibilityElementMockView"))?

https://developer.xamarin.com/api/member/Xamarin.UITest.Queries.AppQuery.Marked/

Could you possibly post a sample app?

Matthew Regul
  • 1,040
  • 8
  • 18
  • Yes, I've tried it without success. For the Android project I manage to do it like app.Query(x=>x.Class("EntityListView").Child("EntityView")). But still no luck with iOS part. – miskegm Feb 08 '17 at 15:57
  • @miskegm, could you post a more detailed sample? maybe a github link? – Matthew Regul Feb 14 '17 at 16:40