sendKeys

abstract fun sendKeys(scope: CoroutineScope, xpath: String, text: String): Deferred<Unit>

异步在由XPath指定的输入框中输入文本。

Return

一个 Deferred<Unit>,在操作完成后完成。

Parameters

scope

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

xpath

目标输入框的XPath。

text

要输入的文本。