Access a shadow-root element using document.querySelector

Viewed 4652

I am trying to access a button (class bt-close-onboarding) inside shadow-root using document.querySelector, but when I try to access the shadow-root, it returns null

enter image description here

I startet building the query like this:

document.querySelector('body > brad-root > div.center > #app-wrapper > brad-app-home > )

but when i insert shadow-root in the query it returns null

0 Answers
Related