Skip to content
test sites

All tests / JavaScript pages

Shadow DOM

What this tests. Reviews inside an open shadow root. document.querySelector can't see them; your selectors have to pierce it.

The reviews live in the shadow root of <nw-reviews>. In a browser, element.shadowRoot gets you in; Playwright's CSS selectors pierce open roots on their own.

What people said