DEV Community

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

Collapse
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...

Collapse
gmeben profile image
Grant Eben

The nice thing about dev.to 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?