Relative Content

Tag Archive for xpathautomationweb-applicationswebautomation

Can any body help me with how to write xpath for all text words within same div tag

<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 […]