Skip to main content
Version: 24.38.0

ElementHandle.clickablePoint() 方法

🌐 ElementHandle.clickablePoint() method

返回元素内的中点,除非提供了特定的偏移量。

🌐 Returns the middle point within an element unless a specific offset is provided.

语法

🌐 Signature

class ElementHandle {
clickablePoint(offset?: Offset): Promise<Point>;
}

参数

🌐 Parameters

范围

🌐 Parameter

类型

🌐 Type

描述

🌐 Description

offset

偏移

(可选)

🌐 (Optional)

返回:

Promise<Point>