Appium : Clear a field

后端 未结 26 2939
野趣味
野趣味 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 16:50

    I faced the same issue.

    Tried to click, clear and send keys, it worked.

    See this code

    driver.findElement(By.name("address").click(); 
    driver.findElement(By.name("address").clear();
    driver.findElement(By.name("address").sendKeys("something");`
    

提交回复
热议问题