-1

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.

Radha
  • 1

1 Answers1

0

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.

Sebastian Zartner
  • 18,808
  • 10
  • 90
  • 132