contextClick

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

异步模拟在指定元素上进行右键点击。

Return

一个 Deferred<Boolean>,如果元素存在并尝试了右键点击则为true,否则为false

Parameters

scope

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

xpath

目标元素的XPath。