This is my case:
let passwordSecureTextField = app.secureTextFields[\"password\"] passwordSecureTextField.tap() passwordSecureTextField.typeText(\"wrong_pass
It occurred with me for many times. You have to disable Keyboard Hardware and Same Layout as OSX in your Simulator
Hardware/Keyboard (disable all)
After that keyboard software won't dismiss and your tests can type text