Effective DOM selector patterns. Interact like a user | Carter Capocaccia @Cypressio
Effective DOM selector patterns. Interact like a user | Carter Capocaccia  @Cypressio
Uploaded October 2023 | Updated November 2026, 2 days ago
When writing tests that interact with your UI, you will likely utilize DOM nodes to isolate elements of your application and perform actions or assertions upon those elements or contents thereof.

In this talk, Carter ranks DOM node selectors styles into three "tiers" and discusses why he favors some over others and how Cypress enables us to act like a user more than ever before. Using poor selectors is akin to building your house upon sand. You can build a mansion of a test suite using poor selectors, but the test suite will crumble violently and require constant maintenance.
Effective DOM selector patterns. Interact like a user | Carter CapocacciaReact Testing Library vs Cypress Component TestingCypress AccessibilityIntroducing Cypress Cloud!Improving E2E Efficiency in Cypress: From 10 to 4 Hours | Alejandro Brugarolas SĂĄnchez-LidĂłnAuth Failure Forensics with Cypress | Viola LykovaDecreasing Flake: Cypress Cloud MCP and Cloud CLIAuthentication Workflows with Cypress & Mailosaur | Filip HricTest Confidence: Types of Flake & How to Remediate | David IngrahamNavigating Between Stakeholders Vision and Shipped Code.The Bug Bash: Episode 3From Script Author to Quality Owner | Walmyr Filho
Cypress.io |

Effective DOM selector patterns. Interact like a user | Carter Capocaccia

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER