getCssValue

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

异步获取由XPath指定的元素的计算后CSS样式属性值。

Return

一个 Deferred<String?>,解析为CSS属性值或 null

Parameters

scope

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

xpath

目标元素的XPath。

propertyName

CSS属性名。