wait Until Property
abstract fun waitUntilProperty(scope: CoroutineScope, xpath: String, propertyName: String, predicate: (CoroutineScope, String?) -> Deferred<Boolean>, timeout: Long): Deferred<Boolean>
异步等待由XPath指定的元素的某个HTML属性值等于期望值,直到超时。
Return
一个 Deferred<Boolean>,如果属性值匹配则解析为 true,否则为 false。
Parameters
scope
用于执行此操作的协程作用域。
xpath
要等待的元素的XPath。
property Name
属性名称。
predicate
期望的属性值。
timeout
超时时间(毫秒)。