attributeEquals

abstract fun attributeEquals(scope: CoroutineScope, xpath: String, attributeName: String, expectedValue: String): Deferred<Boolean>

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

Return

一个 Deferred<Boolean>

Parameters

scope

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

xpath

目标元素的XPath。

attributeName

属性名称。

expectedValue

期望的属性值。