如何使用 REPL 列出 TableView 中的元素?我需要类 UIAccessibilityElementMockView
的所有元素。这些是在树命令之后可见的元素:Xamarin_Tree
我已经尝试了以下命令:
app.Query(x=>x.Class("UITableView").Child())
app.Query(x=>x.Class("UITableView").Child("UITableViewCell"))
任何帮助将不胜感激。
经过一段时间的调查,我设法解决了这个问题:
.app。Query(x => x.Class("UITableViewCell").后代("UIBUttonLabel"))
此查询将返回我需要的所有实体的列表。
你试过app.Query(c => c.Marked("UIAccessibilityElementMockView"))
吗?
https://developer.xamarin.com/api/member/Xamarin.UITest.Queries.AppQuery.Marked/
你能发布一个示例应用程序吗?