clear

abstract fun clear(scope: CoroutineScope, xpath: String): Deferred<Boolean>

异步清空由XPath指定的输入框中的内容。

Return

一个 Deferred<Boolean>,如果元素存在并尝试了清空则为true,否则为false

Parameters

scope

用于执行此操作的协程作用域。

xpath

目标输入框的XPath。