I'm having trouble writing an XPath for the text below. It works fine when highlighted in the ChroPath (a plugin for Chrome), but it fails during runtime even though it's visible in the application. I couldn't find a solution on Google. Please help me resolve this issue.
<div class="abc">
::before
<content style="">Please fill out this field.</content>
::after
</div>
XPath:
//div[@class='abc']//content[contains(text(),\"Please fill out this field\")]