title: Selenium: unable to click on class and image
body: <p>I'm using Selenium web driver and trying to click on search image and its unable to click on this. I'm not sure what is going wrong. I have tried </p>
  
  <p>xpath option</p>
  
  <pre><code>driver.findElement(By.xpath("//form/div/div/div/div/div[2]/table/tbody/tr/td[2][@class='icon-button combo-button']")).click();
  </code></pre>
  
  <p>Also tried for image</p>
  
  <pre><code>driver.findElement(By.xpath("//form/div/div/div/div/div[2]/table/tbody/tr/td[2]/img[contains(@src,'iconActionSearch.png')]")).click();
  </code></pre>
  
  <p>I have tried exactly the same from Selenium IDE</p>
  
  <pre><code>driver.findElement(By.xpath("//div[@id='divToolbar']/div[2]/table/tbody/tr/td[2]/img")).click();
  </code></pre>
  
  <p>this is where above code is suppose to act</p>
  
  <pre><code>   &lt;td class="icon-button combo-button" title="Search"&gt;
      &lt;img src="../common/images/iconActionSearch.png"&gt;
  </code></pre>
  
  <p>this is html snippet i have</p>
  
  <pre><code>&lt;!DOCTYPE html&gt;
  &lt;html&gt;
  &lt;head&gt;
  &lt;body class="navigator" onbeforeunload="closeAllChildWindows()" onload="initializeSlideIns()"&gt;
  &lt;div class="mmenu" style="display: none;"&gt;
  &lt;div class="mmenu" style="display: none;"&gt;
  &lt;div class="mmenu" style="display: none;"&gt;
  &lt;div class="mmenu" style="display: none;"&gt;
  &lt;div class="mmenu" style="display: none;"&gt;
  &lt;div class="mmenu" style="display: none;"&gt;
  &lt;div class="mmenu" style="display: none;"&gt;
  &lt;div class="mmenu" style="display: none;"&gt;
  &lt;div class="mmenu" style="display: none;"&gt;
  &lt;div class="mmenu" style="display: none;"&gt;
  &lt;div class="mmenu" style="display: none;"&gt;
  &lt;div class="mmenu" style="display: none;"&gt;
  &lt;div class="mmenu" style="display: none;"&gt;
  &lt;div class="mmenu" style="display: none;"&gt;
  &lt;div class="mmenu" style="display: none;"&gt;
  &lt;form name="navigatorForm"&gt;
  &lt;div id="pageHeadDiv"&gt;
  &lt;div class="toolbars"&gt;
  &lt;div class="toolbar-container"&gt;
  &lt;div id="divToolbar" class="toolbar-frame"&gt;
  &lt;div class="toolbar"&gt;
  &lt;div class="toolbar functions"&gt;
  &lt;table border="0" cellspacing="0" cellpadding="0"&gt;
  &lt;tbody&gt;
  &lt;tr&gt;
  &lt;td class="icon-button" nowrap="" itemid="emx567127522162.935" title="Home"&gt;
  &lt;td class="icon-button combo-button" title="Search"&gt;
  &lt;img src="../common/images/iconActionSearch.png"&gt;
  &lt;/td&gt;
  &lt;td class="menu-arrow" title="Search"&gt;
  &lt;td&gt;
  &lt;/tr&gt;
  &lt;/tbody&gt;
  &lt;/table&gt;
  &lt;/div&gt;
  &lt;/div&gt;
  &lt;/div&gt;
  &lt;/div&gt;
  &lt;/div&gt;
  &lt;div class="breadcrumbs"&gt;
  &lt;script src="./scripts/emxBreadcrumbs.js" type="text/javascript"&gt;
  &lt;script src="./scripts/emxQuery.js" type="text/javascript"&gt;
  &lt;script type="text/javascript"&gt;
  &lt;div id="pageContentDiv" style="top: 62px;"&gt;
  &lt;div id="layerOverlay" style="display: none;"&gt;&lt;/div&gt;
  &lt;div id="panelSlideIn" class="dialog viewer" style="top: 62px; display: none;"&gt;
  &lt;div id="windowshadeMask" style="z-index: 50; display: none;"&gt;
  &lt;/form&gt;
  &lt;div id="checkoutdiv"&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>