title: Selenium webdriver Unable to identify elements by xpath containing &nbsp;
body: <p>I have following table row. I am unable to identify <strong>th</strong> using XPath.</p>
  
  <pre><code>&lt;tr&gt;
  &lt;th&gt;My&amp;nbsp;Home&lt;/th&gt;
  &lt;th&gt;My&amp;nbsp;School&lt;/th&gt;
  &lt;th&gt;Home&lt;/th&gt;
  &lt;/tr&gt;
  </code></pre>
  
  <p>I have tried  :        </p>
  
  <pre><code>mydriver.findElement(By.xpath("//tr/th[text()='My Home']"));
  mydriver.findElement(By.xpath("//tr/th[text()='My\u00a0Home']"));
  mydriver.findElement(By.xpath("//tr/th[text()='My${nbsp}Home']"));
  </code></pre>
  
  <p>I have also tried contains() inside xpath.</p>