get Property
abstract fun getProperty(scope: CoroutineScope, xpath: String, propertyName: String): Deferred<String?>
异步获取由XPath指定的元素的某个 DOM 属性值 (Property)。
Return
一个 Deferred<String?>,解析为属性值的字符串表示或 null。
Parameters
scope
用于执行此操作的协程作用域。
xpath
目标元素的XPath。
property Name
要获取的属性名称。