waitForInputReady

abstract fun waitForInputReady(scope: CoroutineScope, xpath: String, timeout: Long): Deferred<Boolean>

异步等待由XPath指定的输入框或文本域变得可供输入,直到超时。 条件:元素变得存在、可见、已启用且非只读。

Return

一个 Deferred<Boolean>,如果元素准备好输入则解析为 true,否则为 false

Parameters

scope

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

xpath

要等待的元素的XPath。

timeout

超时时间(毫秒)。