getElementCount

abstract fun getElementCount(xpath: String): Int

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

Return

匹配到的元素数量。如果找不到则返回0。

Parameters

xpath

目标元素的XPath。