question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Need a "rightclick" command

See original GitHub issue

I need the ability to right click an element within Cypress so that it triggers the contextmenu event and all that entails.

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Reactions:17
  • Comments:20 (7 by maintainers)

github_iconTop GitHub Comments

11reactions
cypress-bot[bot]commented, Oct 23, 2019

Released in 3.5.0.

8reactions
brian-manncommented, Nov 4, 2017

With 0.20.0 it’s possible to simply use cy.trigger() to trigger the contextmenu event.

cy.get('button').trigger('contextmenu', options)
Read more comments on GitHub >

github_iconTop Results From Across the Web

Right Click Commands - ProtoMAX KnowledgeBase
All buttons with right-click menus have a default command. This command is chosen when you left-click on the button. Contact Support Service. OMAX...
Read more >
rightclick - Cypress Documentation
The .rightclick() command may also be fired with key modifiers in order to simulate holding key combinations while right clicking, such as ALT...
Read more >
How To Right-Click With The Keyboard In Windows & Mac
Use a Right-Click Shortcut Key. In Windows, you can select items using Tab and the cursor keys.You can then use Enter to activate...
Read more >
Windows 10: Open the Command Prompt via Right-Click ...
To Quickly Open the Command Prompt: 1. Hold Shift and Right Click. (This keyboard combination may be used on the Desktop or within...
Read more >
10 Best Shortcuts to Add to Your Right-Click Menu - MakeUseOf
Another context menu selection that provides multiple options is "Send To," which appears whenever you right-click a file. By default, you only have...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found