Appium : Clear a field

后端 未结 26 2940
野趣味
野趣味 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 17:06

    def Clear(self):
        self.driver.keyevent(123)#Move Cursor Last one
        time.sleep(2)
        for i in range(10):
            self.driver.keyevent(67)#Deleted Keyboard 
            self.driver.implicitly_wait(60)
    

提交回复
热议问题