Steps to reproduce
I have try it can’t works for EdgeWebDriver.
Note： It can select the items of drop down list from item3 to item8 by using ClickAndHold method. But it can’t drop one item from drop down list to canvas (an other control ). Please reference the attachments. It works on FirefoxDriver.But it can’t work for Edge.
I have try other functions：
1.public Actions DragAndDrop(IWebElement source, IWebElement target);
2.public Actions DragAndDropToOffset(IWebElement source, int offsetX, int offsetY);
They can’t work too. Could you have a look it?
By the way.
The function can work for InternetExplorerDriver, FirefoxDriver and ChromeDriver. Please see the attachment. Thanks~
Comments and activity
- Microsoft Edge Team
Changed Assigned To to “Brad E.”
Changed Assigned To to “Mara P.”
Changed Assigned To from “Mara P.” to “Navin A.”
Changed Status to “Confirmed”
Changed Assigned To from “Navin A.” to “Clay M.”
Changed Title from “ClickAndHold(Element) or MoveToElement(Element) doesn't work on EdgeWebDriver 14393.” to “ClickAndHold(Element) or MoveToElement(Element) doesn't work on EdgeWebDriver 14393.”
Hey! I’ll need more information to determine the cause of the issue. Could you please attach the test code used and the page the test is running on so that I can reproduce the issue?
I have add the test Html on attachment. It is a static html. So It only can Drag the item "NegSpec 1". Please see the Test.7z
It can’t drag with EdgeWebDriver (MicrosoftWebDriver).
It looks like drag and drop is broken on the attachment. I’m not able to drag and drop in Chrome or Edge with the mouse or with WebDriver. Checking the console there are quite a few errors being thrown so it may be one of them causing drag and drop to fail.
My code for reference I was using to test:
var driver = new ChromeDriver();
driver.Url = "file:///C:/Users/clmartin/Downloads/Test/Camstar%20Portal.htm";
var firstIframe = driver.FindElementByXPath(“//[@id="tabfr_1"]");
var secondIframe = driver.FindElementByXPath("//[@id="tabfr_1_2”]");
var thirdIframe = driver.FindElementByXPath(“//[@id="FloatingFrame_frame"]");
var element = driver.FindElementByXPath("//[@id="step_4”]");
var actions = new Actions(driver);
It finds the element successfully but dragging it in either browser fails. I haven’t tried Firefox. Could you try it on the attached file and see if it’s working for you there and if not, update the attachment?
Could we have a meeting? We can show this issue in our environment.
If yes, Please tell me what time are you free and we will schedule a meeting.
And I need remove the the above comment. It include the mail.
How do I can remove it? Could you remove it?
It’s not that I need to see the issue repro’ing, it’s that we need a sample to debug against locally (something that fails 100% of the time that we can test and see what’s going on in our code).
- Microsoft Edge Team
Changed Status from “Confirmed” to “Not reproducible”
I’m going to close this as not repro for now as we need a page to repro against. Please reactivate the bug and attach sample markup where webdriver is failing and we’ll investigate further.