getElementCount

abstract fun getElementCount(scope: CoroutineScope, xpath: String): Deferred<Int>

异步获取所有匹配XPath的元素的数量。

Return

一个 Deferred<Int>

Parameters

scope

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

xpath

目标元素的XPath。