Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Shadow-Piercing Selectors #307

Open
elgohr opened this issue Oct 7, 2022 · 4 comments
Open

Shadow-Piercing Selectors #307

elgohr opened this issue Oct 7, 2022 · 4 comments
Labels

Comments

@elgohr
Copy link

elgohr commented Oct 7, 2022

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?

@ninadingole
Copy link
Collaborator

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

@elgohr
Copy link
Author

elgohr commented Oct 11, 2022

@mxschmitt
Copy link
Member

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.

@elgohr
Copy link
Author

elgohr commented Oct 22, 2022

Added a test. Hope this helps

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants