O'Reilly logo
  • J Poongavanam thinks this is interesting:

builder.clickAndHold(three) .release(two) .perform();


Cover of Selenium WebDriver Practical Guide


There is slight problem with this approach; when the element dropped to the new location it comes back to the original position. Rather i found an alternative to work around this problem. dragAndDrop.clickAndHold(element1).moveByOffset(element2.getLocation().getX()+1,element2.getLocation().getY()+1).release().perform(); Not sure what is wrong with the one given in the book. Any suggestion or info. Please share....