Skip to main content
Version: 23.9.0

ElementHandle.touchStart() 方法

¥ElementHandle.touchStart() method

此方法在需要时将元素滚动到视图中,然后在元素的中心启动触摸。

¥This method scrolls the element into view if needed, and then starts a touch in the center of the element.

签名

¥Signature

class ElementHandle {
touchStart(this: ElementHandle<Element>): Promise<TouchHandle>;
}

参数

¥Parameters

范围

类型

描述

this

ElementHandle<元素>

Returns:

Promise<TouchHandle>

表示已启动触摸的 TouchHandle

¥A TouchHandle representing the touch that was started