mirror of
https://github.com/cypress-io/cypress.git
synced 2026-05-18 22:28:38 -05:00
1.5 KiB
1.5 KiB
title, comments, description
| title | comments | description |
|---|---|---|
| dblclick | true |
Double-click on the DOM element in the previous command.
The following events are fired during dblclick: dblclick
| Returns | the new DOM element(s) found by the command. |
| Timeout | cy.dblclick will retry for the duration of the defaultCommandTimeout |
cy.dblclick()
Double-click the current subject.
Options
Pass in an options object to change the default behavior of cy.dblclick.
cy.dblclick(options )
| Option | Default | Notes |
|---|---|---|
log |
true |
whether to display command in command log |
Usage
Double click an anchor link
<a href='#nav1'>Menu</a>
// returns the <a> for further chaining
cy.get("#nav1").dblclick()
Command Log
Double click on a calendar schedule
cy.get("[data-schedule-id='4529114']:first").dblclick()
The commands above will display in the command log as:
When clicking on dblclick within the command log, the console outputs the following: