Write an XPath for the div based on its contained text.
With the implicit . or the explicit string() first argument, all text node descendants are concatenated together before performing the contains()test, so the test passes.
|
1 |
<span class="pln">//div[contains(string(), "This is the text we're looking for")]</span> |
