-
Notifications
You must be signed in to change notification settings - Fork 769
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
support ByQuery and ByQueryAll on specified nodes #463
Comments
Hey! I'm also looking for an example of searching nested nodes. |
I also am interested in this if anyone has an idea :) |
What about something like |
@mvdan I guess the main idea is to use the already stored Node in the variable. |
I see; I assume that you mean querying for nodes within a specific The Chrome devtools protocol definitely supports this, so it's a limitation of our API. Perhaps there's a way we could work it in; we'd need to think about it. In the meantime, you could use https://godoc.org/github.com/chromedp/cdproto/dom#QuerySelectorAll directly, which is what |
Called FromNode, it means that we can run a query rooted at a specific node, instead of the default which is the root node of the document. Fixes #463.
like puppeteer
maybe like
this is my code
The text was updated successfully, but these errors were encountered: