getTagName

abstract fun getTagName(scope: CoroutineScope, xpath: String): Deferred<String?>

异步获取由 XPath 指定的元素的标签名称。

Return

一个 Deferred,解析为大写的标签名(如 "DIV", "BUTTON"),或在元素不存在时解析为 null。

Parameters

scope

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

xpath

目标元素的 XPath。