Closed route closed 4 years ago
Yes. Search looks through the outerHTML of the nodes.
Is this intended behavior? Currently there's no way to look for a node by XPath except using DOM.performSearch
which supports plain text or query selector or XPath search query
(btw I find it odd that there's no way to specify what type of query you exactly need). There are only DOM.querySelector
and DOM.querySelectorAll
which support selector. Also if XPath is invalid DOM.performSearch
returns nothing while IMO it should be an error if we had clear types of queries supported by it.
This repository is related to Chrome DevTools Protocol, but does not track issues regarding its definition or implementation. If you want to file an issue for the Chrome DevTools Protocol, please open an issue on https://crbug.com under component: Platform>DevTools>Platform
. Thanks in advance!
There's a webpage
and I'm making
performSearch
request:I have no idea why span is returned? Is that because it has style visibi_li_ty?