title: I am unable to click on a Web Element using Selenium Webdriver
body: <p>I am trying to automate an application using selenium Webdriver. I frequently come across scenarios where click action does not work on the WebElements.</p>
  
  <p>For instance , in the html block that looked something like :</p>
  
  <pre><code>&lt;div id=staticid&gt;
    &lt;table&gt;
      &lt;tbody&gt;
        &lt;tr id="tr1" class="class1" tabindex="-1" data-recordindex="0" data-recordid="1" data-boundview="gridview-1211" role="row"&gt;
          &lt;td id="td1" class="class2 " role="gridcell"&gt;
            &lt;div class="class3 " style="text-align:left;" unselectable="on"&gt;Content 1&lt;/div&gt;
          &lt;td id="td2" class="class6" role="gridcell"&gt;
            &lt;div class="class5" style="text-align:center;" unselectable="on"&gt;
              &lt;img class="class4" src="chekboximage"&gt;
            &lt;/div&gt;
          &lt;/td&gt;
          &lt;td id="td3" class="class8" role="gridcell"&gt;
            &lt;div class="class5" style="text-align:center;" unselectable="on"&gt;
              &lt;img class="class4" src="checkboximage"&gt;
            &lt;/div&gt;
          &lt;/td&gt;
        &lt;/tr&gt;
      &lt;/tbody&gt;
    &lt;/table&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>The ids are dynamically generated and the classes are like "grid-inner.." so on. (I ve replaced them to make it smaller)
  The last two  elements appear as checkboxes.
  On clicking the  block, the class of the td block changes and the the checkbox appears to be clicked.</p>
  
  <p>I tried to click on the checkboxes using driver.findElement(By.xpath()),csspath and everything. The click action seems to be carried out successfully but the desired result,that is ,the checkbox being checked does not happen.</p>
  
  <p>I verified my xpath and csspaths using Selenium IDE. The Element gets located correctly using the "Find" option. Click action also gets performed ,but the checkboxes remain unchecked.</p>
  
  <p>I ve been trying to get this done for almost a week now.
  Can anyone please help me out?</p>
  
  <p>The code did seem to change the image on click (I compared the image source before and after a click) . But there were no visible "onclick()" calls (I am not sure if there are other ways of invoking java script fuctions on click.Please do let me know if there are ). Anyway , I tried clicking on the  block. it works with Se-IDE and Se-IEDriver but not in FireFoxDriver.</p>