You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi! I'm using the Python sync bindings of Playwright and want to get the full HTML content of web pages. Some pages seem to use shadow DOM components, which are not included in the HTML returned by page.content. How do I get either the full HTML (preferrable) or the shadow DOM content separately?
Here's an example page with shadow DOM under popup-info and a minimal Python script to try to get that content:
Osmo Salomaa (@otsaw) unfortunately we don't expose anything like this; you'll have to iterate shadow hosts manually in javascript land using page.evaluate().
Activity
aslushnikov commentedon Aug 22, 2022
Osmo Salomaa (@otsaw) unfortunately we don't expose anything like this; you'll have to iterate shadow hosts manually in javascript land using
page.evaluate().