5 ms·
Yes, you can use `$x("//a/path")`, with (at least) Chrome & Firefox. See https://devhints.io/xpath https://devhints.io/xpath & https://devtoolstips.org/tips/en
by palsecam 3y ago
Yes, you can use `$x("//a/path")`, with (at least) Chrome & Firefox.
See https://devhints.io/xpath https://devhints.io/xpath & https://devtoolstips.org/tips/en/evaluate-xpath/ https://devtoolstips.org/tips/en/evaluate-xpath/, and in this thread: https://news.ycombinator.com/item?id=36755041 https://news.ycombinator.com/item?id=36755041
- dusanh 3y agoAnd you can do the same for CSS selectors with $$('foo')!