How do I search with XPath in Firefox Quantum 65?

I used to use FirePath and FireBug for XPath support in Firefox a long time ago, but those tools haven't worked with Firefox for some time. I was disappointed but found that I could still use the find feature in the inspector developer tool to look up elements. Today however (with Quantum 65.0.1, x64), I found it does not work anymore. See the //div search in the find box, highlighted in dark red:

Firefox doesn't find divs by XPath

I checked the developer tools settings and found nothing related to XPath search. I can still right-click an element and Copy its XPath. Is there anything I can do to search by XPath in Firefox these days?

1 Answer

Searching elements by XPath within the DevTools Inspector is only available since Firefox 75. See bug 963933 for more information.

Note that you can also search elemnets by XPath using the command $x() in the console, or use the add-on Try XPath.

7

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like