-
Notifications
You must be signed in to change notification settings - Fork 3.3k
Closed
Labels
pkg/driverThis is due to an issue in the packages/driver directoryThis is due to an issue in the packages/driver directorytopic: cy.click 🖱type: enhancementRequested enhancement of existing featureRequested enhancement of existing feature
Description
The current experience issuing a ctrl-click , cmd-click, etc could use some improvement.
First, add a section to the cy.click
doc concerning modifiers, with an example or two.
Second, consider updating the cy.click
command to accept modifiers directly instead of needing cy.type
command first.
Currently you need this to ctrl-click:
cy.get('body').type('{ctrl}', { release: false })
cy.get('#some-el').click()
Something like this would be a lot better:
cy.get('#some-el').click({ ctrlKey: true })
nbarrera, Herteby, SPujina, fr0, kevinSuttle and 2 more
Metadata
Metadata
Assignees
Labels
pkg/driverThis is due to an issue in the packages/driver directoryThis is due to an issue in the packages/driver directorytopic: cy.click 🖱type: enhancementRequested enhancement of existing featureRequested enhancement of existing feature