How AI is applied across API Evangelist and APIs.io. Read my AI disclosure →
API Evangelist API Evangelist
Discovery
Learnings
Guidance
Toolbox
Alignment
API Evangelist LLC

Find elements the way your users do with cy.getByRole()

calendar_today October 14, 2026 person Jennifer Shehane domain cypressio

Cypress 16.2.0 adds cy.getByRole(), a built-in query that finds elements by role and accessible name. By default, it matches only native elements, so your tests catch a swapped for a . Here’s why that matters, and how to move off Cypress Testing Library.

open_in_new Read original post