has Attribute
abstract fun hasAttribute(scope: CoroutineScope, xpath: String, attributeName: String): Deferred<Boolean>
异步检查由XPath指定的元素是否包含指定的HTML属性 (Attribute)。
Return
一个 Deferred<Boolean>。
Parameters
scope
用于执行此操作的协程作用域。
xpath
目标元素的XPath。
attribute Name
要检查的属性名称。