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