Actions in Cypress
Explore the key actions available in Cypress for end-to-end testing of JavaScript applications. Learn to use commands such as click, type, focus, and scroll on DOM elements, and discover how to handle the absence of a hover action with alternative methods.
We'll cover the following...
We'll cover the following...
Actions
Once you’ve identified the DOM element or elements you want to interact with, you can then send actions to those elements. Our first test used click to interact with a DOM element on the page and send it an action. Cypress provides basically any action you’d want:
- Click actions:
click,dblclick,rightclick - Form actions:
check,