Skip to content

Latest commit

 

History

History
220 lines (123 loc) · 5.46 KB

Schema.DoubleClickStep.md

File metadata and controls

220 lines (123 loc) · 5.46 KB

@puppeteer/replay / Schema / DoubleClickStep

Interface: DoubleClickStep

Schema.DoubleClickStep

Hierarchy

Table of contents

Properties

Properties

assertedEvents

Optional assertedEvents: NavigationEvent[]

Inherited from

StepWithSelectors.assertedEvents

Defined in

Schema.ts:64


button

Optional button: PointerButtonType

Defaults to 'primary' if the device type is a mouse.

Inherited from

ClickAttributes.button

Defined in

Schema.ts:119


deviceType

Optional deviceType: PointerDeviceType

Pointer type for the event. Defaults to 'mouse'.

Inherited from

ClickAttributes.deviceType

Defined in

Schema.ts:115


duration

Optional duration: number

Delay (in ms) between the mouse up and mouse down of the click.

Default Value

50

Inherited from

ClickAttributes.duration

Defined in

Schema.ts:135


frame

Optional frame: FrameSelector

Defaults to main frame

Inherited from

StepWithSelectors.frame

Defined in

Schema.ts:78


offsetX

offsetX: number

in px, relative to the top-left corner of the element content box. Defaults to the center of the element

Inherited from

ClickAttributes.offsetX

Defined in

Schema.ts:124


offsetY

offsetY: number

in px, relative to the top-left corner of the element content box. Defaults to the center of the element

Inherited from

ClickAttributes.offsetY

Defined in

Schema.ts:129


selectors

selectors: Selector[]

A list of alternative selectors that lead to selection of a single element to perform the step on. Currently, we support CSS selectors, ARIA selectors (start with 'aria/'), XPath selectors (start with xpath/) and text selectors (start with text/). Each selector could be a string or an array of strings. If it's a string, it means that the selector points directly to the target element. If it's an array, the last element is the selector for the target element and the preceding selectors point to the ancestor elements. If the parent element is a shadow root host, the subsequent selector is evaluated only against the shadow DOM of the host (i.e., parent.shadowRoot.querySelector). If the parent element is not a shadow root host, the subsequent selector is evaluated in the regular DOM (i.e., parent.querySelector).

During the execution, it's recommended that the implementation tries out all of the alternative selectors to improve reliability of the replay as some selectors might get outdated over time.

Inherited from

StepWithSelectors.selectors

Defined in

Schema.ts:100


target

Optional target: string

Defaults to main

Inherited from

StepWithSelectors.target

Defined in

Schema.ts:71


timeout

Optional timeout: number

Inherited from

StepWithSelectors.timeout

Defined in

Schema.ts:63


type

type: DoubleClick

Overrides

StepWithSelectors.type

Defined in

Schema.ts:139