scrollIntoView

abstract fun scrollIntoView(scope: CoroutineScope, xpath: String): Deferred<Boolean>

异步将指定的元素滚动到可视区域内。

Return

一个 Deferred<Boolean>,如果元素存在并尝试了滚动则为true,否则为false

Parameters

scope

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

xpath

目标元素的XPath。