草庐IT

reusableTableHeaderFooterView

全部标签

ios - Appium 自动化无法找到 reusableTableHeaderFooterView 的 elementByAccessibilityId

实际场景是这样的,我有多个section的tableView,使用reusableTableHeaderFooterView。可重用View内部有多个元素。IE。标签、按钮等在将headerView出队并按照以下代码在配置方法中设置可访问性后,我在viewForHeaderInSection中调用配置方法。在ViewController中functableView(_tableView:UITableView,viewForHeaderInSectionsection:Int)->UIView?{letcustomHeader:CustomHeader=tableView.dequeu