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

后端 未结 24 1577
难免孤独
难免孤独 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:06

    In my case this Hardware -> Keyboard -> Connect Hardware Keyboard -> Disable didn't worked for me.

    But when I followed

    1) Hardware -> Keyboard -> Connect Hardware Keyboard -> Enabled and run the app
    2) Hardware -> Keyboard -> Connect Hardware Keyboard -> Disable.

    It worked for me

提交回复
热议问题