drag and drop is not properly placing the elements in selenium : I am using the below code to drag and drop the elements in an application.But most of the times it is dropping to the different section of the page.And in rarely its placing the element to the correct destination.The issue is coming when moving the third element to its destination. From third element onwards, the element is getting dropped in different path.The xpath of the all the three elements are exactly same.I am dragging 7 elements totally.From 4th element onwards the area of the destination is changing.So the issue is the third element is getting moved to the area where the 4th element should go.

The code upto 4th element is updated below

  

                WebElement element1 = driver.findElement(By.xpath("html/body/div[3]/div[4]/div[3]/div[1]/div[2]/div[2]/div/div/div/div/div/div[5]/div[3]/div/div[3]/div/div/div/table/tbody/tr[1]/td/table/tbody/tr[1]/td[2]/div/table/tbody/tr/td[2]/div/div/button")); 

			    WebElement target1 = driver.findElement(By.xpath("html/body/div[3]/div[4]/div[3]/div[1]/div[2]/div[2]/div/div/div/div/div/div[5]/div[3]/div/div[3]/div/div/div/table/tbody/tr[2]/td[1]/div"));
			    			    	    		    
			    (new Actions(driver)).dragAndDrop(element1, target1).perform();
			    
			    Thread.sleep(7000);	    

			    
			    WebElement element2= driver.findElement(By.xpath("html/body/div[3]/div[4]/div[3]/div[1]/div[2]/div[2]/div/div/div/div/div/div[5]/div[3]/div/div[3]/div/div/div/table/tbody/tr[1]/td/table/tbody/tr[1]/td[2]/div/table/tbody/tr/td[2]/div/div/button")); 

			    WebElement target2 = driver.findElement(By.xpath("html/body/div[3]/div[4]/div[3]/div[1]/div[2]/div[2]/div/div/div/div/div/div[5]/div[3]/div/div[3]/div/div/div/table/tbody/tr[2]/td[1]/div"));
			    			    	    		    
			    (new Actions(driver)).dragAndDrop(element2, target2).perform();
			    
			    Thread.sleep(7000);	    

			    
		    
			    WebElement element3= driver.findElement(By.xpath("html/body/div[3]/div[4]/div[3]/div[1]/div[2]/div[2]/div/div/div/div/div/div[5]/div[3]/div/div[3]/div/div/div/table/tbody/tr[1]/td/table/tbody/tr[1]/td[2]/div/table/tbody/tr/td[2]/div/div/button")); 

			    WebElement target3 = driver.findElement(By.xpath("html/body/div[3]/div[4]/div[3]/div[1]/div[2]/div[2]/div/div/div/div/div/div[5]/div[3]/div/div[3]/div/div/div/table/tbody/tr[2]/td[1]/div"));
			    			    	    		    
			    (new Actions(driver)).dragAndDrop(element3, target3).perform();
			    
			    Thread.sleep(7000);	    

                 WebElement element4 = driver.findElement(By.xpath("html/body/div[3]/div[4]/div[3]/div[1]/div[2]/div[2]/div/div/div/div/div/div[5]/div[3]/div/div[3]/div/div/div/table/tbody/tr[1]/td/table/tbody/tr[1]/td[2]/div/table/tbody/tr/td[2]/div/div/button")); 

			    WebElement target4 = driver.findElement(By.xpath("html/body/div[3]/div[4]/div[3]/div[1]/div[2]/div[2]/div/div/div/div/div/div[5]/div[3]/div/div[3]/div/div/div/table/tbody/tr[2]/td[2]/div"));
			    
			    (new Actions(driver)).dragAndDrop(element4, target4).perform();

			    Thread.sleep(7000);	    
