title: How to escape backslash in xpath webdriver java
body: <p>I am using the xpath with Selenium web driver Java to locate an element using id and it's id is like this:</p>
  
  <p>name\params\etc</p>
  
  <p>to represent this in java, I am using </p>
  
  <pre><code>String id = "\\name\\params\\etc"
  driver.findElement(By.xpath("//"+"a"+"[@id='"+id+"']"));
  </code></pre>
  
  <p>please let me know how to resolve it.</p>