DEV Community
•
2026-04-08 10:58
Why I stopped using DOM locators for End-to-End tests altogether—and replaced them with computer vision
If you’ve ever written End-to-End (E2E) tests using Selenium, Cypress, or Playwright, you know the ultimate pain: flakiness.
You write a perfect test. It runs green. Two weeks later, a frontend developer changes a wrapper div, renames a CSS class, or adds a promotional pop-up. Suddenly, your CI/CD pipeline is red, and your test fails with the dreaded ElementNotInteractableException.
I’ve spent ...