<div class="o-text99">
"No "
"messages"
" found"
</div>
I want to identify all the three words from the div and class attribute value is dynamic, so class attribute value number keep changes
Note: after “No” there is space and before “found” there is a space.
I’ve tried with below xpath:
//div[contains(@class,’o-text’)]/self::div[contains(text(),’No’)]/self::div[contains(text(),’messages’)]/self::div[contains(text(),’found’)]
But, unable to find the results.
Could anybody help me with xpath for identify all the words within the same div