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: >
This normally happens when the opened screen in your app, is a "WebView".
When faced with similar problem, I followed the below steps:
Below, is the code that might just help you out in resolving your problem:
WebElement ele = driver.findElement(By.xpath("//Locator of the textfield")); //Locating the textfield
int characters_to_delete = ele.getAttribute("value").length();//Counts the number of characters to delete
ele.click(); //Tapping or Clicking on the textfield
// Deleting or Clearing the textfield off of the prefilled values
for(int i=0;i