How to clear already filled text field in iOS

clear() command is not working.

I want to clear already filled textfield for iOS using python .

I am currently working on v1.15.1 appium version.

2 Likes

WebElement obj=driver.findElement(By.id(“id”);
obj.setValue("");

You can use this instead of clear is not working means:

object.sendKeys(Keys.CONTROL,“a”);
object.sendKeys(Keys.DELETE);