title: How to click an image with Selenium with only an SRC
body: <pre><code>&lt;td colspan="2" align="center"&gt;
          &lt;img src="web/L001/images/IMAGENAME.jpg" width="213" height="46" border="0" onclick="javascript: MessageDisplay()" &gt;&lt;/td&gt;
  </code></pre>
  
  <p>This is the element I'm trying to click. 
  My attempted code:</p>
  
  <pre><code>WebElement temp = driver.findElement(By.xpath("web/L001/images/Phishing_12.jpg"));
  temp.click();
  </code></pre>
  
  <p>I even tried with the full address, but any ides would be appreciated. </p>
  
  <p>I use this to log on to various websites but this particular one throws up a web-page before that I have to click on that element before I can continue.
  -Thx</p>