--
You received this message because you are subscribed to the Google Groups "webdriver" group.
To post to this group, send email to webd...@googlegroups.com.
To unsubscribe from this group, send email to webdriver+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/webdriver?hl=en.
String text = (String) ((JavascriptExecutor) driver).executeScript(
"return arguments[0].parent.nodeValue",
element);
Should point you in the right direction.
Simon