Skip to content

element is dragged correctly but not dropped at the specified target instead, displayed with the mouse pointer #7744

Closed
@Nishant-Taksande

Description

@Nishant-Taksande

🐛 Bug Report

I am using Actions class for doing drag and drop via below methods:
dragAndDrop(From, To);
dragAndDropBy(From, X, Y);
clickAndHold(From).moveToElement(To).build().perform();

Source element is dragged correctly but not dropped at the locations specified by "To" / "X,Y"

Mac:Chrome: Dragged item is displayed along with the mouse pointer.
Win: Chrome: Nothing is displayed (Drag / drop)

Video of script execution with audio, please check

https://monosnap.com/file/28tj483msnno2lwMCZKZvvTdarGNEI

To Reproduce

Please find below script code

Test script or set of commands reproducing this issue

System.setProperty("webdriver.chrome.driver", "driver78");
driver = new ChromeDriver();
driver.get("https://www.seleniumeasy.com/test/drag-and-drop-demo.html");
From = driver.findElement(By.xpath("//div[@id='todrag']//span[text()='Draggable 1']"));
To = driver.findElement(By.xpath("//div[@id='mydropzone']"));

AppLibrary.sleep(3000);
Actions act = new Actions(driver);
act.dragAndDrop(From, To).build().perform();

AppLibrary.sleep(3000);
Actions act1 = new Actions(driver);
act1.clickAndHold(From).moveToElement(To).build().perform();

Environment

OS: Win, OS X
Browser: Chrome 77-78, FireFox 70
Language Bindings version: <2.53.0 - 4.0.0-alpha-3>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions