title: Selenium webdriver Java code using web driver for double click a record in a grid
body: <p>How to write selenium java code for <code>doubleClick()</code> on a record using web driver?</p>
  
  <p>I have displayed some records in the body part. Once I clicked on a record we should get a popup window to update it.</p>
  
  <p>Please suggest how to write Selenium Java code using web driver.</p>
  
  <p>I have tried following code:</p>
  
  <pre><code>Actions action = new Actions(driver);
  action.moveToElement(driver.findElement(By.xpath("//table/tbody/tr[2]/td/div/div/table/tbody/tr[10]/td[1]"))).doubleClick().build().perform();
  </code></pre>