It might be just me but I can't find any way to get DOM element's XPATH in Firefox.
That was possible in Firebug, but now it's deprecated in favor of Firefox Developer Tools, and the recommendation is not to use it any longer.
So, is there any way to get XPATH in Firefox and its Developer Tools?
Right click on an element of the page. Right click highlighted element. Select: "Copy XPath"
Open the developer tools in Firefox, then:
allow paste
if you are pasting anything.Type the XPath like so:
$x("path")
For example:
$x(".//*[@id='4th']/tbody/tr[1]/td")
Firebug also works well, so I suggest using that instead.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With