inputText

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

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

Return

一个 Deferred<Boolean>,如果元素存在并成功输入则为true,否则为false

Parameters

scope

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

xpath

目标输入框的XPath。

text

要输入的文本。