Appium : Clear a field

后端 未结 26 3185
野趣味
野趣味 2020-12-16 16:03

I have my login screen in app now. Each time the app is launched in screen the mobile number is pre filled with the older text.

I just want to know I have tried:

26条回答
  •  情书的邮戳
    2020-12-16 16:44

    We can use selectAll if tests are executing on android.

    • longPress on textfield
    • Locate and tap on element of selectAll (Android select all button)
    • sendKeyEvent(67)

    It will select entire text and will press delete.

提交回复
热议问题