-
Notifications
You must be signed in to change notification settings - Fork 9k
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
SVG element causes DOM.getBoxModel error #1247
Comments
I tried the latest version in the repository and now the error has changed to |
Thanks @Jamesernator, this is a bug. |
I have similar problem but related to click on button where page got reloaded because of some AJAX call. I think this can be related as both methods are calling function
|
I'm not sure if this helps but when I use the chrome-devtools protocol "DOM.getNodeForLocation" on a SVG element, it will return an error. So might this be related? |
Same With Me , Try to click con but DOM.getBoxModel still return undefined, I just test on latest Chrome Browser and got the same result { width: auto, height: auto} . But it still rendered and visible |
Filed upstream crbug.com/800636 |
This roll includes: - https://crrev.com/570566 - DevTools: teach DOM.getBoxModel to work with SVG nodes Fixes puppeteer#1247.
This roll includes: - https://crrev.com/570566 - DevTools: teach DOM.getBoxModel to work with SVG nodes Fixes puppeteer#1247.
This roll includes: - https://crrev.com/570566 - DevTools: teach DOM.getBoxModel to work with SVG nodes Fixes #1247.
I solved a problem that looks 99% the same as here in two ways:
|
I've been having issues trying to hover an svg element using
elementHandle.hover()
, now usingpage.evaluate(element => element.getBoundingClientRect(), elementHandle)
works so I'm not sure why it throws an error for.hover()
.Here's a minimal example that causes it:
puppeteer-svg-hover-test.zip
The text was updated successfully, but these errors were encountered: