Replies: 1 comment 4 replies
-
It should be possible if the https://playwright.dev/docs/locators#locate-in-shadow-dom Plain javascript can also do this: const parent = document.querySelector('div');
const shadow = parent.shadowRoot;
const element = shadow.querySelector('.elementIWantToFind'); If it is https://developer.mozilla.org/en-US/docs/Web/API/ShadowRoot/mode |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, can you help me with getting text from shadow-root node? Is it even possible? Thanks.
Beta Was this translation helpful? Give feedback.
All reactions