Skip to main content
Version: 24.38.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

范围

🌐 Parameter

类型

🌐 Type

描述

🌐 Description

this

ElementHandle<Element>

返回:

Promise<TouchHandle>

表示已开始触摸的 TouchHandle

🌐 A TouchHandle representing the touch that was started