xpath search from parent selenium code example Example: contains text xpath //*[contains(text(),'ABC')]