-
Notifications
You must be signed in to change notification settings - Fork 3.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG]: Unable to Locate the <summary />
Element by Its Implicit button
Role
#26354
Comments
Okay this should be good to go. |
<summary />
Element by Its Implicit button
Role
<summary />
Element by Its Implicit button
Role<summary />
Element by Its Implicit button
Role
According to the spec https://w3c.github.io/html-aam/#html-element-role-mappings, section
That said, there is no Browsers also think differently:
|
Interesting. MDN is usually right, but I guess their information was a little off this time. According to https://w3c.github.io/html-aria/#el-summary, it seems that there are user agents that expose Is there a recommended approach for |
@ITenthusiasm Perhaps it makes sense to expose |
@dgozman Sounds good! Thanks for considering! |
Minor update/correction. It seems that the Testing Library Family doesn't currently expose a role for the However, it still holds that many user agents use |
Did you have a chance to raise this issue with Testing Library?
Well, even though the link claims this, my manual checks in three browser engines show that none of them does that. So I'd like to be careful instead of inventing our own ideas about the accessible role of I hope that |
Not yet because I got distracted with a busy project. 😕 I can ask them this week.
Was this from looking at the developer tools or from working with a Screen Reader? Here's my experience on MacOS 12.6 with VoiceOver:
Although it's old, this article seems to suggest that -- at least at some point in time -- JAWS and NVDA identified Ultimately, I think the results of the browser developer tools aren't necessarily going to be the greatest source of reliability. This is because sometimes the Screen Reader Tool that a user is relying on may not see what the browser devtools say, or it may alter/enhance what the browser devtools say (e.g., identifying the Having a role to identify |
For Reference: testing-library/dom-testing-library#1252 |
Why was this issue closed?Thank you for your contribution to our project. This issue has been closed due to its limited upvotes and recent activity, and insufficient feedback for us to effectively act upon. Our priority is to focus on bugs that reflect higher user engagement and have actionable feedback, to ensure our bug database stays manageable. Should you feel this closure was in error, please create a new issue and reference this one. We're open to revisiting it given increased support or additional clarity. Your understanding and cooperation are greatly appreciated. |
System info
@playwright/[email protected]
,Source code
Config File
Test File
Test Page
Steps
button
role.summary
element is not discoverable. 😭These steps are executed in the test file above.
Expected Behavior
According to the summary element specifications, the element should be discoverable under the
button
role.Actual
Locator.getByRole()
is not able to findsummary
elements by thebutton
role.The text was updated successfully, but these errors were encountered: