I successfully recorded a UI test to tap different elements of an inputAccessoryView, but I was wondering if there is a better API to get that view?
The generated code is currently finding the first button of the input accessory view by traversing the keyboard window:
app.children(matching: .window).element(boundBy: 1)
.children(matching: .other).element
.children(matching: .other).element
.children(matching: .other).element(boundBy: 1)
.children(matching: .other).element(boundBy: 1)
.children(matching: .other).element(boundBy: 1)
.children(matching: .other).element
.children(matching: .button).element(boundBy: 0)
It would be great if I could simply call
textField.inputAccessoryViews.firstMatch
Am I missing something?
Thanks,
Eman