#cy.tapholdDuration()
// Unmoved-press duration before 'taphold' fires, ms (default 500)
cy.tapholdDuration(): numberUnmoved-press duration before 'taphold' fires, ms (default 500).
Returns
numberthe current tapholdDuration value
#cy.tapholdDuration(ms)
// Unmoved-press duration before 'taphold' fires, ms (default 500)
cy.tapholdDuration(ms: number): thisUnmoved-press duration before 'taphold' fires, ms (default 500).
| Name | Description |
|---|---|
ms: number | the new duration |
Returns
thisthis core, for chaining
Example
const result = cy.tapholdDuration(500);console.log(result === cy); // trueThrows
if ms is not a finite non-negative number