Usage of Different type of XPath anchors like ancestor code example Example: contains text xpath //*[contains(text(),'ABC')]