select By Visible Text
abstract fun selectByVisibleText(scope: CoroutineScope, xpath: String, text: String): Deferred<Boolean>
异步根据可见文本内容选择<select>下拉列表中的选项。
Return
一个 Deferred<Boolean>,如果成功选择则为true,如果元素或选项未找到则为false。
Parameters
scope
用于执行此操作的协程作用域。
xpath
<select>元素的XPath。
text
要选择的<option>的可见文本。