get element using sibling element xpath code example Example: contains text xpath //*[contains(text(),'ABC')]