-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
[Feature]: print the entire html tag in debug when it's intercepting click events #30977
Comments
I can have a look at this one. Would it be worth restricting the fully outputted tags to a subset of commonly used identifiers? e.g. |
I though about it, especially for
So, at the end, I think it's just better to throw the whole tag with every attribute, in the order found in the dom, in a unopinionated way. |
@Joe-Hendley Would you still like to contribute a PR? I think we should just bump from 50 to 500 here: https://github.com/microsoft/playwright/blob/main/packages/playwright-core/src/server/injected/injectedScript.ts#L986 and update the tests. |
Sounds good to me - life got in front of doing anything towards this in the meantime! I'll throw something together today / monday at the latest. |
Thanks you two 🎉 |
hello @dgozman ! |
Hello @mxschmitt !
|
@HugoImaios this should be released already. We don't mention small fixes like this. If you experience bugs, I recommend to file a new separate issue. |
@mxschmitt oh ok sorry ! I though the changelog was generated from merged PR and linked issues. |
🚀 Feature Request
When performing the actionability of a click on an element and other elements intercepts pointer events, the latter should be printed with all his attributes.
Example
The feature request is about those
...
Motivation
I totally get that we can't have the whole html outputted (the second and the third
...
), but would it be possible to have the whole html tag ? In my example, it would mean having what is afterclass="qui
.As you can see in my example, the first attributes might not always lead us to the actual element in our code that intercept click, making debugging really difficult
The text was updated successfully, but these errors were encountered: