hover

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

异步模拟鼠标悬停 (Hover) 在由 XPath 指定的元素上。

Return

一个 Deferred,如果成功触发悬停事件则为 true。

Parameters

scope

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

xpath

目标元素的 XPath。