How to write the XPath for this
I am trying to write the XPath for the below element but unable to do. I want to write for the Individual. I wrote like this
<h3 class="dashboradh"> <strong>My Dashboard</strong> <span>Anjana</span> | Individual </h3>
There are some white spaces in your string. So use
normalize-space()to trim the white spaces as below :
You should try dot
text()in contains method to match the required text in any node within the tag.