Absolute xpath

983 views
Skip to first unread message

Suman Varma

unread,
Jan 13, 2014, 12:01:25 PM1/13/14
to fir...@googlegroups.com
Is there a way to get absolute xpath?

When use the the copy xpath option, I get something like: //*[@id="mx5277[R:0]"]
I want the absolute path. Ex:- /html/body/table[2]/tbody/tr/td/table/tbody/tr/td/table/tbody/tr/td/table/tbody/tr[2]/td/div/table/tbody/...

I can see the absolute xpath in the tooltip when I inspect the element, but I can't copy it.

Jan Honza Odvarko

unread,
Jan 13, 2014, 12:08:29 PM1/13/14
to fir...@googlegroups.com


On Monday, January 13, 2014 6:01:25 PM UTC+1, Suman Varma wrote:
Is there a way to get absolute xpath?

When use the the copy xpath option, I get something like: //*[@id="mx5277[R:0]"]
Yep, this is generated for elements with ID.
 
I want the absolute path. Ex:- /html/body/table[2]/tbody/tr/td/table/tbody/tr/td/table/tbody/tr/td/table/tbody/tr[2]/td/div/table/tbody/...

I can see the absolute xpath in the tooltip when I inspect the element, but I can't copy it.

Agree, this should be possible, and it sounds like a good new feature to me.

please create a new issue report here:
http://code.google.com/p/fbug/issues/list

.. and we'll fix it.

Honza


Jan Honza Odvarko

unread,
Jan 14, 2014, 10:54:54 AM1/14/14
to fir...@googlegroups.com
Just cross posting link to the reported issue:

http://code.google.com/p/fbug/issues/detail?id=7120

Honza
Reply all
Reply to author
Forward
0 new messages