isPresent

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

异步检查由XPath指定的元素是否存在于DOM中。

Return

一个 Deferred<Boolean>

Parameters

scope

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

xpath

要检查的元素的XPath。