--
You received this message because you are subscribed to a topic in the Google Groups "chrome-debugging-protocol" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/chrome-debugging-protocol/XWFeYoBUkds/unsubscribe.
To unsubscribe from this group and all its topics, send an email to chrome-debugging-protocol+unsub...@googlegroups.com.
To post to this group, send email to chrome-debugging-protocol@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/chrome-debugging-protocol/8cd65e93-84d1-4a1e-9b81-46186870ac2d%40googlegroups.com.
Thanks for the response. I'm not sure if this quite works for me however because I am using devtool's concept nodeIds; if I understand correctly the Chrome Devtools world maps nodeIds to elements on the DOM. I am afraid that executing raw JS will return me a JS element, but I'm not sure how to convert the element back into a nodeId for me to do further processing on the element with other API calls.
There is also that boolean option includeUserAgentShadowDOM; I'm not entirely sure I understand what that setting is but does it allow me to performSearch on a subset of the DOM? Do you know what is meant by user agent shadow DOM?
On Tue, Jun 5, 2018 at 12:29 PM, Andrea Cardaci <cyru...@gmail.com> wrote:
You can use Runtime.evaluate to inject a Document.evaluate call.
On Monday, 4 June 2018 18:52:18 UTC+2, Dan wrote:Hi,I am interested in performing an XPath Query relative to some node on the DOM using the Devtools API. Basically doing something like ".//div" - using the '.' means that the XPath query is executed relative to the search context from which it originated.The closest thing I found was DOM.performSearch, however this doesn't seem to provide a mechanism for me to provide a nodeId which is the context from which the XPath expression is executed. Any tips on this?
--
You received this message because you are subscribed to a topic in the Google Groups "chrome-debugging-protocol" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/chrome-debugging-protocol/XWFeYoBUkds/unsubscribe.
To unsubscribe from this group and all its topics, send an email to chrome-debugging-protocol+unsub...@googlegroups.com.
To post to this group, send email to chrome-debug...@googlegroups.com.
To unsubscribe from this group and all its topics, send an email to chrome-debugging-protocol+unsubsc...@googlegroups.com.
To post to this group, send email to chrome-debug...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/chrome-debugging-protocol/8cd65e93-84d1-4a1e-9b81-46186870ac2d%40googlegroups.com.
--
You received this message because you are subscribed to a topic in the Google Groups "chrome-debugging-protocol" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/chrome-debugging-protocol/XWFeYoBUkds/unsubscribe.
To unsubscribe from this group and all its topics, send an email to chrome-debugging-protocol+unsub...@googlegroups.com.
To post to this group, send email to chrome-debugging-protocol@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/chrome-debugging-protocol/b03bdb07-bbf8-4298-8d04-643be6a5f39e%40googlegroups.com.