java selenium drag and drop code example
Example: drag and drop in selenium
There are different ways to drag and drop I use
Actions action=new Actions(driver);
action.dragAndDrop(source, target).build().perform();
or
action.clickAndHold(source).moveToElement(target).release().build().perform();