-
-
Notifications
You must be signed in to change notification settings - Fork 8.4k
element is dragged correctly but not dropped at the specified target instead, displayed with the mouse pointer #7744
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
I am having this exact issue. I've spent hours trying to debug this and haven't made any progress. Selenium docker image: selenium/standalone-firefox-debug:3.141.59-zinc (same with the chrome one) I get the same behaviour using both the python lib and my Rust lib elem1 = driver.find_element_by_id("dragitem1")
elem2 = driver.find_element_by_id("dragdrop-result")
ac = ActionChains(driver).drag_and_drop(elem1, elem2).perform() Drag and drop works fine outside of selenium if I do it manually in either Chrome or Firefox (both Linux). But it does not work via selenium. As the above post says:
|
@stevepryde
|
I'm using yew (rust/wasm framework) but otherwise the front-end is not using any other framework. I'm also using purecss.io but I don't think that is the problem. |
Same as #7782 ? |
@adrianer yes I think it is |
I am having the same issue with Selenium tests using Java on Chrome browser where I am using actions.dragAndDrop(sourceElement,targetElement).perform(); Source element is dragged correctly but dropped where ever the mouse cursor is . If some how I can make it work on the browser it will still fail when I run test as headless which the ultimate requirement for the test. |
I have this issue at my work as well... so far I have only tried out the IDE piece of it. |
News on this issue? I have the same with Java + Chrome and Firefox. It's a Selenium issue or a Chrome issue? |
@v3g3t4x I used Pom Builder to find a better XPath and it solved my issue...but the issue still exists in Chrome and/or Selenium. To clarify, my original version is 84.0.4147.125 and I am using the Selenium IDE. |
My xpath is correct...I think it's a more complex issue. I open new issue with 2 example, please check #8624 |
Duplicate of #8003 |
🐛 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>
The text was updated successfully, but these errors were encountered: