A
anupamjain
I am trying to 'grab' the XPath of an element as soon as the user
clicks on it. So I am putting a span tag around that element (it's
actually a <td>) and onmouseover it gets highlighted, now I want that
onmouseclick, I grab the XPath of that td tag. Is there a built in
method to do this in Xpath API (for eg. can I pass the span 'id' to a
function and get the Xpath?)
It's a JSP page where I will be importing the Java file where I will be
using the XPath API.
Also, if there's a better way to do all that I am doing, please let me
know.
Thanks,
Anupam
clicks on it. So I am putting a span tag around that element (it's
actually a <td>) and onmouseover it gets highlighted, now I want that
onmouseclick, I grab the XPath of that td tag. Is there a built in
method to do this in Xpath API (for eg. can I pass the span 'id' to a
function and get the Xpath?)
It's a JSP page where I will be importing the Java file where I will be
using the XPath API.
Also, if there's a better way to do all that I am doing, please let me
know.
Thanks,
Anupam