Loading challenge...
Type into a slotted light-DOM input inside an open shadow root, then reach the shadow button via ::part
Type into a slotted light-DOM input inside a custom element with an open shadow root, then submit to mirror the value out
<wc-card> and <wc-field> are custom elements with open shadow roots that render only a styled wrapper plus a <slot>.
The #wc-input is slotted light DOM โ it lives in the host document, so it is directly queryable without piercing any shadow boundary.
Fill #wc-input, then click #wc-submit
Automation hints
#wc-input is queryable directly, no shadowRoot piercing needed#wc-input, click #wc-submit, then assert #wc-result[data-submitted="hello"] โ the value is mirrored to that attribute::part โ reach it with wc-field::part(action) or a pierce locator like page.locator("wc-field").locator("button")customElements.define client-side only โ add a short wait after navigation so upgrade completes before you interact