DEV Community

Discussion on: Cypress Commands (Get, Click, Find)

automationbro profile image
Dilpreet Johal Author

I agree, data-* attributes are best to use as selectors. However, the site I was working didn't have any so had to use id, css, etc...

gmeben profile image
Grant Eben

The nice thing about is that we're not tied to teaching from any particular website. We have the power to teach anything. So why not teach best practices?