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:
I faced similar issue recently. What I did, get the text from edit text if equals ""
, then send keys else called clear()
method.
I'm working with python and this is what I use:
self.driver.find_element_by_id(element_id).click()
self.driver.find_element_by_id(element_id).send_keys('')
I hope that it helps.