clickAt

abstract fun clickAt(scope: CoroutineScope, xpath: String, xOffset: Int, yOffset: Int): Deferred<Boolean>

异步在由 XPath 指定的元素的指定偏移位置执行点击。 坐标 (0,0) 代表元素的左上角。

Return

一个 Deferred,如果元素存在并尝试了点击则为 true。

Parameters

scope

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

xpath

目标元素的 XPath。

xOffset

横向偏移量(像素)。

yOffset

纵向偏移量(像素)。