title: How to translate apostrophe in python
body: <p>I want to find element having apostrophe in it.</p>
  
  <pre><code>driver.find_element_by_xpath("//a[translate(. , ' ' ' , ' ')=' Im ']").get_attribute('href')
  
  &lt;#a ref='#'&gt;I'm&lt;/a&gt;
  </code></pre>