Click to See Complete Forum and Search --> : Getting innerText via XPath


code?
May 29th, 2009, 03:13 PM
Is there any possible way to get the text value (not text node) of an element?

I want to return an array of elements' innerText property, but can't manage to do it without having a loop through the text nodes if I choose to go with text()

"//*[contains(@id, \"_usernameLink\")]@innerText"
"//*[contains(@id, \"_usernameLink\")]/innerText"

Something like that.