selectByValue

abstract fun selectByValue(scope: CoroutineScope, xpath: String, value: String): Deferred<Unit>

异步根据value属性选择<select>下拉列表中的选项。

Return

一个 Deferred<Unit>。如果找不到匹配的选项,Deferred将失败并抛出异常。

Parameters

scope

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

xpath

<select>元素的XPath。

value

要选择的<option>value属性值。