title: Selenium WebDriver(Java) : JavascriptExecutor fails to click element, while WebElement.click() works well
body: <p>As the following code shows, clicking the element by the WebElement.click() method works, while JavascriptExecutor.executeScript fails ( works in most situaitons ).</p>
  
  <pre><code>WebElement e = driver.findElement(By.xpath("......."));//some kind of checkbox
  e.click(); //works fine.
  ((JavascriptExecutor) aw.driver).executeScript("arguments[0].click();",e); 
  //executes with no exception, but the element is not selected.
  </code></pre>
  
  <p>The page's source code is too complex to paste here, sorry. <br />
  <b>Any clue or tip for debugging this  problem? </b></p>
  
  <p>The element's html code, It's a extjs-style checkbox:<br />
  <code>&lt;td class="x-grid3-hd x-grid3-cell x-grid3-td-checker x-grid3-cell-first " style="width: 20px;"&gt;
  &lt;div class="x-grid3-hd-inner x-grid3-hd-checker" id="ext-gen108" unselectable="on" _nodup="30805"&gt;
  &lt;div class="x-grid3-hd-checker" _nodup="30805" /&gt;
  &lt;/div&gt;&lt;/td&gt;</code></p>
  
  <p>I have tried click each of <code>td</code>, <code>td/div</code> , <code>td/div/div</code> elements , getting same result: <code>WebElement.click()</code> works,  <code>JavascriptExecutor.executeScript</code> fails(No exception, but the checkbox is not checked).</p>