You can use XPath with any language that supports Selenium. You can write your scripts in JavaScript, Java, Python, Ruby, C#, and PHP.