c# selenium find element by xpath contains(text) code example Example: xpath contains text //button[contains(text(),"Go")]