This is my case:
let passwordSecureTextField = app.secureTextFields[\"password\"] passwordSecureTextField.tap() passwordSecureTextField.typeText(\"wrong_pass
This issue caused me a world of pain, but I've managed to figure out a proper solution. In the Simulator, make sure 'Hardware -> Keyboard -> Connect hardware keyboard' is off.