xpath text check for substring not text only code example Example: xpath contains text //button[contains(text(),"Go")]