propertyEquals

abstract fun propertyEquals(scope: CoroutineScope, xpath: String, propertyName: String, expectedValue: Any): Deferred<Boolean>

异步检查由XPath指定的元素的DOM属性值是否等于期望值。

Return

一个 Deferred<Boolean>

Parameters

scope

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

xpath

目标元素的XPath。

propertyName

属性名称。

expectedValue

期望的属性值 (可以是 String, Boolean, Number)。