miskegm
miskegm

Reputation: 55

Xamarin UITest REPL Query TableView elements

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.

Upvotes: 0

Views: 968

Answers (2)

miskegm
miskegm

Reputation: 55

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.

Upvotes: 1

Matthew Regul
Matthew Regul

Reputation: 1050

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?

Upvotes: 0

Related Questions