Prompt
I'm building cross-browser regression tests and want something less brittle than Selenium
Latest observation
Nov 16, 2026
OpenAI APIWeb search: off
If you want something less brittle than Selenium for cross-browser regression tests, the best options today are usually Playwright or Cypress—with Playwright being the strongest fit if you need true cross-browser coverage.
Best option: Playwright
Why it’s less brittle:
- Uses auto-waiting for elements and navigations
- Encourages user-centric locators like text/roles/test IDs instead of fragile CSS paths
- Handles modern web apps well
- Supports Chromium, Firefox, and WebKit from one API
- Great for parallel, reliable regression suites
Good when you need:
- Cross-browser testing
- Headless and headed runs
- Network interception
- Stable end-to-end tests for SPAs
Cypress
Pros:
- Very nice developer experience
- Excellent debugging
- Fast feedback loop
Cons:
- Historically more limited for true cross-browser coverage than Playwright
- Best for app-level E2E tests in Chromium-based browsers, though browser support has improved
Good when:
- Your team values ease of use and tight frontend workflow
- You mainly test in Chromium-based browsers
If you want to stay in Selenium land but reduce brittleness
You can still improve reliability by:
- Using explicit waits instead of sleeps
- Prefer stable selectors like
data-testid - Avoiding deep CSS/XPath chains
- Encapsulating page interactions in Page Object or screenplay patterns
- Making assertions on behavior, not implementation details
Recommendation
For “cross-browser regression tests and less brittle than Selenium,” I’d recommend:
Playwright + data-testid locators + parallelized test runs
That usually gives the best balance of:
- stability
- speed
- browser coverage
- maintainability
If you want, I can also give you:
- a Playwright starter template,
- a comparison table vs Selenium/Cypress, or
- a migration plan from Selenium to Playwright.