playwright-go icon indicating copy to clipboard operation
playwright-go copied to clipboard

Shadow-Piercing Selectors

Open elgohr opened this issue 3 years ago • 4 comments

The documentation says Support for web components via shadow-piercing selectors. I also found files like https://github.com/playwright-community/playwright-go/blob/main/tests/assets/deep-shadow.html Nevertheless I didn't find any test for shadowed fields. When I try to select a shadowed field via the Locator, the locator doesn't find it at the moment. Am I missing something?

elgohr avatar Oct 07 '22 08:10 elgohr

@elgohr could you please provide your test that is having issue

ninadingole avatar Oct 11 '22 11:10 ninadingole

@ninadingole that's the issue. I can't find any test for https://github.com/playwright-community/playwright-go/blob/main/tests/assets/deep-shadow.html

elgohr avatar Oct 11 '22 11:10 elgohr

Shadow Piercing should work out of the box, its covered in the upstream Playwright project, thats why the test-file is not in-use.

Could you share with us a repro what's exactly not working? In e.g. a small git repo.

mxschmitt avatar Oct 12 '22 20:10 mxschmitt

Added a test. Hope this helps

elgohr avatar Oct 22 '22 18:10 elgohr