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

feat(queryhandler): add built-in pierce handler #6509

Merged
merged 1 commit into from Oct 13, 2020
Merged

Conversation

johanbay
Copy link
Collaborator

@johanbay johanbay commented Oct 13, 2020

Adds a handler 'pierce' that pierces shadow roots while querying.
Closes #6217.

Adds a handler 'pierce' that pierces shadow roots while querying.
@johanbay johanbay marked this pull request as ready for review October 13, 2020 08:59
@johanbay johanbay merged commit 8fabe32 into main Oct 13, 2020
@johanbay johanbay deleted the add-pierce-handler branch October 13, 2020 09:05
@php4fan
Copy link

php4fan commented Feb 27, 2022

Why is this still undocumented??

@joelwhiteswan
Copy link

is it possible to get this with xpaths?

@gitressa
Copy link

gitressa commented Jan 29, 2024

I was also looking for a simple example of tageting the shadow root, and found one by @remcovaes in https://stackoverflow.com/a/76967459:

This issue is solved with P selectors in Puppetteer.

In this case you could use page.click('>>> #my-button'). The >>> Allow you to select stuff in shadowRoots.

I know this issue is old, but I needed this and this issue still pops up on searches.

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

Successfully merging this pull request may close these issues.

Shadow Dom support
5 participants