How can I run an xpath expression?
See original GitHub issueHi everyone,
I checked the docs here but it’s not clear to me whether there’s a way to make the class Runtime
evaluate not just JavaScript expressions but also XPaths.
Has anyone tried?
Issue Analytics
- State:
- Created 6 years ago
- Comments:6 (2 by maintainers)
Top Results From Across the Web
Working with XPath Expressions - Oxygen XML Editor
Note: If an XPath expression is run over a JSON document, it is converted to XML and the XPath is executed over the...
Read more >XPath - Expression - Tutorialspoint
XPath uses a path expression to select node or a list of nodes from an XML document. Following is the list of useful...
Read more >XPath Tutorial - W3Schools
XPath uses path expressions to select nodes or node-sets in an XML document. These path expressions look very much like the path expressions...
Read more >Use Visual C# to query XML with an XPath expression
This article introduces how to query an XPathDocument object with an XML Path Language (XPath) expression by using the XPathNavigator class.
Read more >XPath expression evaluation | IntelliJ IDEA Documentation
Evaluate an XPath expression · Choose Evaluate XPath from the context menu of the active editor tab or go to Edit | Find...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I think what you want is
DOM.performSearch
:Otherwise you can always use
Runtime.evaluate
to inject aDocument.evaluate
call.I would like to note that WITHOUT calling
DOM.getDocument
prior to performing the search results, the output ofgetSearchResults
will be an array with zeros.Code:
Output without getDocument -
Output with getDocument -