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

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

This is my case:

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


        
24条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2020-12-12 11:16

    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

提交回复
热议问题