XPath contains(text(),’some string’) doesn’t work when used with node with more than one Text subnode
The <Comment> tag contains two text nodes and two <br> nodes as children. Your xpath expression was To break this down, * is a selector that matches any element (i.e. tag) — it returns a node-set. The [] are a conditional that operates on each individual node in that node set. It matches if any of the individual nodes it operates on … Read more