UI Testing Failure - Neither element nor any descendant has keyboard focus on secureTextField

后端 未结 24 1564
难免孤独
难免孤独 2020-12-12 10:41

This is my case:

let passwordSecureTextField = app.secureTextFields[\"password\"]
passwordSecureTextField.tap()
passwordSecureTextField.typeText(\"wrong_pass         


        
24条回答
  •  旧时难觅i
    2020-12-12 10:56

    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.

提交回复
热议问题