element that contains element selenium code example Example: contains text xpath //*[contains(text(),'ABC')]