How to type into a UITextView inside a XCTestCase

Viewed 2839

How do you type into a UITextView inside a XCTestCase? The UITextView is the first responder so it already had focus and the keyboard is up.

I've tried:

app.typeText("footer")
app.textViews.element(boundBy: 0).typeText("foobar")
app.links.element(boundBy: 0).typeText("foobar")

for some reason app.textViews.count always returns 0?

2 Answers
Related