select Text Range
abstract fun selectTextRange(scope: CoroutineScope, xpath: String, start: Int, end: Int): Deferred<Boolean>
异步选中由XPath指定的输入框或文本域中的指定范围的文本。 适用于 <input> 和 <textarea> 元素。
Return
一个 Deferred<Boolean>,如果成功选中则为true,否则为false。
Parameters
scope
用于执行此操作的协程作用域。
xpath
目标元素的XPath。
start
起始索引(包含)。
end
结束索引(不包含)。