title: click on anchor tag having href = '#'
body: <p>I am using below python code using selenium. click is not working on anchor tag having href = "#"</p>
  
  <pre><code>import time    
  import unittest   
  from selenium import webdriver   
  from selenium.webdriver.common.by import By   
  from selenium.webdriver.support.ui import Select   
  from selenium.webdriver.common.keys import Keys   
  
  driver = webdriver.Chrome("E:\chromedriver.exe")   
  driver.get('file:///E:/Selenium/validateTest.html')     
  
  driver.find_element_by_xpath("//a[@id='validateData']/i[text()=' Validate Data']").click()  
  </code></pre>
  
  <p>Here is the web html code that I am using.</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;h1&gt;Anchor tag&lt;/h1&gt;
  
  &lt;a href="#" class="button js-button" role="button"&gt;Show content&lt;/a&gt;
  
  &lt;a href="#" id="validateData" class="btn btn-red" onclick="document.write(5 + 6)"&gt;&lt;i class="fa fa-binoculars" aria-hidden="true"&gt;&lt;/i&gt; Validate Data&lt;/a&gt;</code></pre>
  </div>
  </div>
  </p>