findAll

abstract fun findAll(scope: CoroutineScope, rootXpath: String, predicate: (CoroutineScope, String) -> Deferred<Boolean>): Deferred<List<String>>

递归查找 rootXpath 下所有满足 predicate 的节点(深度优先收集)。

Return

所有匹配元素的 XPath 列表(深度优先顺序),可能为空列表

Parameters

scope

协程作用域

rootXpath

搜索起点 XPath

predicate

判定逻辑,接收 CoroutineScope 和候选元素的 XPath,返回是否匹配