This the DOM of page,
<html>
<head>
<body>
<div id="Content">
Take/O a/O look/O at/O the/O section/O about/O filling/O in/O forms/O using/O
<div id="Footer">
</body>
</html>
I want to access text that is not under any tag just body after <div id="Content">
and before <div id="Footer">
in page body.
I tried:
drv.findElement(( By.xpath("//html/body"))).getText();
but this will give me full text in page under body tag.drv.findElement(( By.xpath("//html/body/data")))
// error Unable to locate element
now can I use following preceding xpath option, as I doubt that this will also look for tag in page?