I am using Java+HtmlUnit to test my Java-GWT project. I have an element like this:
<span unselectable="on" class="x-tree3-node-text">OCP</span>
in the source code of my generated html page.
How can I select it using XPath (or with any another method)?
I've found something like this from documentation about how to use XPath:
.getByXPath("//div[@class='x-tree3-node-text']")
But obviously it's not correct because the value "OCP" is not used anywhere.