@puppeteer/replay / Schema / ClickAttributes
Schema.ClickAttributes
-
ClickAttributes
• Optional
button: PointerButtonType
Defaults to 'primary' if the device type is a mouse.
• Optional
deviceType: PointerDeviceType
Pointer type for the event. Defaults to 'mouse'.
• Optional
duration: number
Delay (in ms) between the mouse up and mouse down of the click.
Default Value
50
• offsetX: number
in px, relative to the top-left corner of the element content box. Defaults to the center of the element
• offsetY: number
in px, relative to the top-left corner of the element content box. Defaults to the center of the element