5

In Google Chrome, when we inspect the page, and press CTRL+F we have option to find through string: XPath or CSS selector.

In Firefox 57.0.4, but I can select elements using a CSS selector, but not XPath.

Is this disabled in latest Firefox? If not, then how can I use it?

Note: It is now possible to use xpath in firefox.

Awaish Kumar
  • 487
  • 6
  • 20

2 Answers2

3

Firefox built-in DevTools do not support searching for elements by XPath as of version 70. This request is tracked in bug 963933.

As a workaround you can use the $x() command in the Console.

Related: Why doesn't FirePath work anymore since Firefox 51.0.1?

Nickolay
  • 29,618
  • 12
  • 101
  • 174
0

I know it's an old question but now bug 963933 is resolved and it's possible to have the same experience as in Chrome by pasting xpath query and getting the result.