0
私はappiumの自動化とそれを使用するためには、UITableViewRowActionのボタンのアクセシビリティラベル/値を設定しようとしているが、いくつかの理由から、アクセスがUITableViewRowAction accessibilityValue
cancel = UITableViewRowAction(style: .Destructive, title: title) { action, index in
tableView.setEditing(false, animated: true)
let order = self.viewModel.orders[indexPath.row].order
self.performSegueWithIdentifier(self.cancelOrderConfirmationSegueId, sender: order)
}
cancel.accessibilityValue = "SomeValue"
cancel.accessibilityLabel = "SomeLabel"
最終的に認識されていませんvalueプロパティはnilとしてリライトされ、labelプロパティはタイトルの名前を取得します(キャンセル)
このタイプのオブジェクトのアクセシビリティを変更することは可能でしょうか?
残念ながら、UITableViewRowActionには「accessibilityIdentifier」というタイプのメンバーがありません。ここでは使用できません...私が言ったように、accessibilityValueは何らかの理由で動作しません... – Igal