ClickAndHold(Element) or MoveToElement(Element) doesn't work on EdgeWebDriver 14393.

Not reproducible Issue #9942099

Details

Author
Nick L.
Created
Nov 24, 2016
Privacy
This issue is public.
Found in
  • Microsoft Edge
Found in build #
14.14393
Reports
Reported by 3 people

Sign in to watch or report this issue.

Steps to reproduce

Actions(EdgeWebDriver).ClickAndHold(onElement).MoveToElement(toElement).Release().Perform();

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?

Environment:
Windows 1607
WebDriver 14393

By the way.
The function can work for InternetExplorerDriver, FirefoxDriver and ChromeDriver. Please see the attachment. Thanks~

Attachments

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?

  • Hi,

    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).

    Thanks~
    Nick.L

  • Hey Nick,

    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"]");
    driver.SwitchTo().Frame(firstIframe);
    var secondIframe = driver.FindElementByXPath("//
    [@id="tabfr_1_2”]");
    driver.SwitchTo().Frame(secondIframe);
    var thirdIframe = driver.FindElementByXPath(“//[@id="FloatingFrame_frame"]");
    driver.SwitchTo().Frame(thirdIframe);
    var element = driver.FindElementByXPath("//
    [@id="step_4”]");
    var actions = new Actions(driver);
    actions.ClickAndHold(element).MoveByOffset(50, 50).Perform();
    Console.ReadLine();
    driver.Quit();

    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?

    Thanks,
    Clay

  • Hi Clay,

    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?

    Thanks~
    Nick.L

  • Hey Nick,

    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.

You need to sign in to your Microsoft account to add a comment.

Sign in