-
Notifications
You must be signed in to change notification settings - Fork 3.4k
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 click on a web component button with an SVG inside #13829
Comments
This comment was marked as off-topic.
This comment was marked as off-topic.
1 similar comment
This comment was marked as off-topic.
This comment was marked as off-topic.
Use |
I appear to be having the same (or at least similar) problem, without force: true E retrying click action, attempt #57
E waiting 500ms
E waiting for element to be visible, enabled and stable
E element is visible, enabled and stable
E scrolling into view if needed
E done scrolling
E <div id="orders" class="ordersScreen" data-display="a…>…</div> intercepts pointer events
E retrying click action, attempt #58
E waiting 500ms Unfortunately the intercepting element is also "clickable" so enabling force clicks on that element instead, is there another work around I can try? Cheers |
Yes, I am facing the same issue? Any on this? |
This also happens with Vuetify's |
Context:
Code Snippet
Describe the bug
I'm trying to click on a
button
inside a web componentsdf-icon-button
.This component hydrates that
button
, using aslot
, with another component calledsdf-icon
. That component has a typicalburger
svg
icon inside.When I try to click on
sdf-icon-button.burger button
, playwright fails to click on it because it finds that there is another element intercepting the click.But that
path
element from thesdf-icon
is inside thebutton
. A naive response would be: yeah, of course, it's intercepting the click because that icon is inside the button I want to click.I know that a workaround would be getting deeper into de DOM, but I would like to rely on the fact that I want to click on that button as a generic solution.
Maybe all this is because of all this Shadow DOM nesting?
The text was updated successfully, but these errors were encountered: