I got this web page to test whether this element contains a certain keyword in it.
<div>
" "
"Network interface updated successfully"
</div>
This is the HTML code and the xpath I am trying to get is
//div[contains(text(),'interface')]
But this xpath doesn't find this element at all. So I tried different way to figure out how it works.
//div/text()[2]
This xpath matches up the element, but it is not the best practice for me.


