Find elements by their roles #2720
Unanswered
VitorLuizC
asked this question in
Q&A
Replies: 2 comments 1 reply
-
You can query elements by css: find("[role='#{role}']") |
Beta Was this translation helpful? Give feedback.
1 reply
-
Check out |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Does Capybara provides a way to query elements by their roles like Testing Library does? It would be great to avoid implementation details in the HTML elements, and just test using their semantics.
Beta Was this translation helpful? Give feedback.
All reactions