clearInput
You can clear value of input widget using clearInput function.
Example
AndroidSendKeys1.kt
(kotlin/tutorial/basic/AndroidSendKeys1.kt
)
@Test
@Order(20)
fun clearInput() {
scenario {
case(1) {
condition {
it.restartApp()
.macro("[Android Settings Search Screen]")
.select("[Search Box]")
.textIs("Search settings")
.sendKeys("clock")
.textIs("clock")
}.action {
it.clearInput()
}.expectation {
it.select("[Search Box]")
.textIs("Search settings")
}
}
}
}