i am getting the the element on the web page by the xpath using the evaluate function.
var ele = document.evaluate(request.path, document, null, XPathResult.ORDERED_NODE_SNAPSHOT_TYPE, null);
var node = ele.snapshotItem(0);
alert(node.textContent);
But this gives undefined, may anyone help me with this ?