How to take Absolute and relative Xpath's from Firefox 58.0 Version

971 Views Asked by At

I am unable to add Firebug and Fire path Add-on's to Firefox 58.0 version. And Because of that reason, Xpath's are not available. Able to take relative Xpath. But I want to take both Xpath's.

1

There are 1 best solutions below

0
On

The Inspector of the Firefox DevTools allows you to copy the absolute XPath of an element via the context menu.

Copy XPath of an element in Firefox DevTools

They currently don't allow to copy the relative XPath, though, but there is already an enhancement request filed to add that option.

Having said that, there is also an option to copy the CSS selector path for an element. And as Selenium also supports CSS selectors to choose elements, this is a viable alternative to XPaths in many cases.