title: Double click through javascript execution for Selenium
body: <p>There is a way to click on element by executing javascript like following:</p>
  
  <pre><code>((JavascriptExecutor)driver).executeScript("arguments[0].click();", element);
  </code></pre>
  
  <p>I want to double click on element by executing javascript, hence I tried like following:</p>
  
  <pre><code>((JavascriptExecutor)driver).executeScript("arguments[0].doubleClick();", element);
  </code></pre>
  
  <p>But it gives error:</p>
  
  <pre><code>org.openqa.selenium.WebDriverException: unknown error: undefined is not a function
  </code></pre>
  
  <p>Please tell me what I need to do in order perform double click by executing javascript.</p>