title: Drag and Drop in selenium java
body: <p>I try to drag and drop the content into search-textbox in selenium,but it perform drag operation but it not drop it into search-textbox.so my question is how to drop into textbox.</p>
  
  <pre><code>driver.get("http://stackoverflow.com/questions/42159265/drag-and-drop-content-into-textbox-by-using-selenium");                 
  WebElement from = driver.findElement(By.xpath("//*[@id='qinfo']/tbody/tr[1]/td[2]/p/b"));
  Actions builder = new Actions(driver);
          builder.doubleClick(from).perform();
          Thread.sleep(1000);
  
  WebElement to = driver.findElement(By.name("q"));
  Action dragAndDrop = builder.clickAndHold(from).moveToElement(to).release(to).build();
          dragAndDrop.perform();
  </code></pre>