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

范围

类型

描述

offset

抵消

(可选的)

Returns:

Promise<Point>