Files
cypress/docs/source/api/commands/dblclick.md
T

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

<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:

screen shot 2015-11-29 at 1 12 02 pm

When clicking on dblclick within the command log, the console outputs the following:

screen shot 2015-11-29 at 1 12 26 pm

Related