web element which has sibling with text xpath code example Example: contains text xpath //*[contains(text(),'ABC')]