Drag and Drop not working..as my drag and drop area not having ‘Frames’ i didn’t use switchTo() here.
Actions action= new Actions(driver);
//driver.switchTo().frame(0);
WebElement drag= driver.findElement(By.xpath(“//div[contains(text(),’GEO’)]”));
WebElement drop= driver.findElement(By.xpath(“//div[@placeholder=’Drag and Drop the subjects which needs evaluation.’]”));
//action.doubleClick(drag);
Thread.sleep(3000);
action.dragAndDrop(drag, drop).perform();
Thread.sleep(3000);
Can anyone please help?
Source: Read More