trigger Attribute Download
abstract fun triggerAttributeDownload(scope: CoroutineScope, xpath: String, attributeName: String): Deferred<Boolean>
异步获取指定元素的属性值(如 src, href),并针对该地址触发下载动作。
Return
一个 [Deferred]<Boolean>,如果元素存在且属性有效则为 true,否则为 false。
Parameters
scope
用于执行此操作的协程作用域。
xpath
目标元素的 XPath。
attribute Name
要获取的属性名称,通常是 "src" 或 "href"。