1
爲了學習UI自動化,我寫了一個簡單的待辦事項列表,但在檢測我的TableViewCells中的檢查標記時遇到困難。在UI自動化測試中檢測UITableViewAccessory
UIALogger.logMessage("adding a checkmark");
// get reference to a cell
var cell = tableView.cells()["Butter"];
// tap the cell (adds a checkmark)
cell.tap();
// make sure this is completed...
target.delay(2);
// view the child nodes
cell.logElementTree();
我能在樹上看到的是一個UIAStaticText,沒有提及accessoryType
了!我怎樣才能看到這是否設置爲Checkmark
?
您還可以使用GUI appium檢查無障礙標籤檢查出來: http://appium.io/ –
一旦我設定的標籤。我如何在我的測試中讀到這個? –