I tried that as well,please see this code and let me know have i missed something
public class ActionDrgndDrop {
static WebDriver wd;
static WebDriverWait wt=null;
public static void main(String[] args) {
WebDriverManager.chromedriver().setup();
wd=new ChromeDriver();
wd.get("
https://jqueryui.com/droppable/");
wd.manage().window().maximize();
wd.manage().timeouts().implicitlyWait(20,TimeUnit.SECONDS);
//wd.switchTo().frame(wd.findElement(By.xpath("//iframe[@class='demo-frame']")));
wd.switchTo().frame(wd.findElement(By.className("demo-frame")));
WebElement w1=wd.findElement(By.xpath("//div[@id='draggable']"));
WebElement w2=wd.findElement(By.xpath("//div[@id='droppable']"));
Actions a1=new Actions(wd);
//a1.clickAndHold(w1).perform();
a1.dragAndDrop(w1, w2).build().perform();
// //System.out.println(w2.getAttribute("class"));
}
Exception in thread "main" org.openqa.selenium.interactions.MoveTargetOutOfBoundsException: move target out of bounds
(Session info: chrome=88.0.4324.104)