This is my case:
let passwordSecureTextField = app.secureTextFields[\"password\"] passwordSecureTextField.tap() passwordSecureTextField.typeText(\"wrong_pass
Use a sleep between launching the app and typing in data in textfields like this:
sleep(2)
In my case I was keeping getting this error every time and only this solution helped my out.