title: Not able to locate xpath of an image using webdriver
body: <p>I am trying to access a tab in a png image using selenium Webdriver:</p>
  
  <pre><code>div id="navbar6ClickDiv" 
  a onclick="return hdlClick('navbar6ClickDiv', 'navbar')" target="workspace" href="/setup.htm"
  img width="90" height="23" border="0" src="/xyz.png"
  </code></pre>
  
  <p>I have tried the following ways to access the tab, but nothing worked :</p>
  
  <ul>
  <li><p>1st:</p>
  
  <pre><code>WebElement div = driver.findElement(By.id("navbar6ClickDiv"));   
               div.click();
  </code></pre></li>
  <li><p>2nd:</p>
  
  <pre><code>WebElement div = driver.findElement(By.tagName("img").name("/images/banner/setupt.png"));
                               div.click();
  </code></pre></li>
  <li><p>3rd:</p>
  
  <pre><code>WebElement div = driver.findElement(By.xpath("//img[contains(@src,'/images/banner/setupt.png')]"));
               div.click();
  </code></pre></li>
  </ul>