selectAllText

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

异步选中由XPath指定的输入框或文本域中的所有文本。 适用于 <input><textarea> 元素。

Return

一个 Deferred<Boolean>,如果成功选中则为true,否则为false

Parameters

scope

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

xpath

目标元素的XPath。