[英]UIAutomation problems accessing TableView
現在我和他的UIAutomation,UITableViewCell內的UITableView都遇到了同樣的問題,但是我不能像他那樣解決。 我的屏幕與他的相似,但有四個單元格,但它們的名稱不同。 使用LogElementTree函數,我得到了與他相同的層次結構,但又有了一點層次。 就他而言,他得到了以下信息:
UIAWindow
UIATableView
UIATableCell
UIATableView
UIATableCell 1
UIATableCell 2
UIATableCell 3
UIATableCell 4
但是我有這個:
UIAWindow
UIATableCell 1
UIATableCell 2
UIATableCell 3
UIATableCell 4
使用他的答案,我寫了我的代碼:
target.frontMostApp().mainWindow().cells()["Author"].tap();
要么
target.frontMostApp().mainWindow().cells()[0].tap();
但這沒有用。 因此,請有人描述如何解決我的問題。
嘗試這個:
target.frontMostApp().mainWindow().tableViews()[0].cells()[0].tap();
試試這樣的事情-
target.frontMostApp().mainWindow().tableViews()[0].cells()[0].tableViews()[0].cells()[0].tap();
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.