I am trying to use user interface tests in the beta version of xcode 7. I have a storyboard with two text fields. Both text fields have outputs and different recovery identifiers. I wrote a test, but the generated code is pretty unreadable and it doesn't work:
app.otherElements.containingType(.TextField, identifier:"y").childrenMatchingType(.TextField).elementBoundByIndex(0).typeText("hello")
I also tried the following and will work based on the text of Placeholder?!?
app.textFields["PlaceholderText"].typeText("hello")
What is the correct way to get a link to TextField in user interface tests?
source share