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: >
A click on to the textBox before you clear should do with the latest libs:
WebElement mob = driver.findElement(By.name("Mobile Number"));
mob.click();
mob.clear();
OR from the sample jUnitTest here
WebElement text = driver.findElement(By.xpath("//UIATextField[1]"));
text.sendKeys("12");
text.clear();
I guess