title: How to click Image icon using selenium webdriver
body: <p>I am trying to click the image icon via xPath but when i run the code the link present on image icon is not opening. could you please help me in resolving this issue.</p>
  
  <p>The Code i used to click the mail icon :
  <img src="https://i.stack.imgur.com/gSKxs.jpg" alt="To Click the Mail Ico"></p>
  
  <pre><code>   driver.findElement(By.xpath("//*[@id='e-switcher-mail-icon']")).click();
  </code></pre>
  
  <p><img src="https://i.stack.imgur.com/ZQrhy.jpg" alt="Html of the page">
  <img src="https://i.stack.imgur.com/8eKzL.jpg" alt="Html of page-part2"></p>