Clear text (mobile)

Clears the text of a previously selected input.

Limitations

This step has a known but rare limitation on Appium's side. Sometimes not all text will be cleared from the target input, and many issues were filed over the years:

Fortunately, there is a workaround on Testim Mobile, and that is to use our Custom Action Step - you would need to send backspace keys, such as:
await DRIVER.sendKeys('\b\b\b\b\b\b\b');

The number of backspace characters can equal any length, and the most common use case would be the length of a string meant for the input in your Test data object.