dragAndDrop

abstract fun dragAndDrop(scope: CoroutineScope, sourceXpath: String, targetXpath: String): Deferred<Boolean>

异步模拟将一个元素拖拽到另一个元素上。

Return

一个 Deferred<Boolean>,如果操作成功则为true,如果源或目标元素未找到或操作失败则为false

Parameters

scope

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

sourceXpath

源元素的XPath。

targetXpath

目标元素的XPath。