user3738879
user3738879

Reputation: 11

How to get the absolute XPath for an element within Firebug?

I used to see the absolute XPath for an element within Firebug. E.g. something like this:

html/body/div[2]/table/tbody/tr/td

When I select a certain element in a table using Firebug, then hover around the highlighted code inside the HTML panel I can't see the XPath anymore.

How to get Firebug to display the XPath again as a tooltip or any other way?

Upvotes: 1

Views: 20799

Answers (3)

Rohit Rawat
Rohit Rawat

Reputation: 1

Uncheck the Option of "Generate absolute Xpath":

FirePath menu

Upvotes: 0

Jeremiah
Jeremiah

Reputation: 1145

Firepath is a very nice extension to Firebug which can help with CSS and XPath references.

Upvotes: 0

Sebastian Zartner
Sebastian Zartner

Reputation: 20095

The tooltips for elements within the HTML panel were removed in Firebug 2.0, because there were repeated requests saying these tooltips were rather annoying than helpful.

If you need the XPath of an element, you can right-click it and choose Copy XPath from the context menu to copy the absolute XPath of the element to the clipboard.

For elements with and id attribute there's also a new option in Firebug 2.0 to copy a short XPath called Copy Minimal XPath.

Copy XPath and Copy Minimal XPath option for element

Upvotes: 2

Related Questions