We're making automated testing for Media drag'n drop to the editor.
Currently what we are stuck in is implementing Drag'n drop from atoms to CKeditor. We're able to drag the images, but not to drop them in the editor.
If someone has implemented a test case for this, or would have a suggestion for us, we would be grateful.
WebElement from = driver.findElement(By.xpath("xpath"));
WebElement to = driver.findElement(By.xpath("xpath"));
driver.switchTo().defaultContent();
Actions builder = new Actions(driver);
builder.clickAndHold(from);
org.openqa.selenium.interactions.Action action = builder.build();
action.perform();
driver.switchTo().frame(driver.findElement(By.xpath("xpath")));
builder.moveToElement(to);
builder.release(to);
action = builder.build();
action.perform();
driver.switchTo().defaultContent();