/following-sibling::text() xpath code example Example: contains text xpath //*[contains(text(),'ABC')]