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: >
To avoid recent iOS 8.x errors I use the following (where by is an instance of By representing your textfield/textview):
int stringLength = driver.findElement(by).getText().length();
if (stringLength > 0) {
driver.findElement(by).clear();
}
If you try and call clear() against an already clear textfield I was tending to get errors in appium.