find parent div with class xpath code example Example: xpath contains text //button[contains(text(),"Go")]