I've been utilizing Protractor to test my AngularJS application, specifically focusing on dragging an element and dropping it onto an SVG. So far, I've managed to successfully click and drag the element over the SVG.
browser.actions()
.mouseMove(draggableElement)
.mouseDown()
.mouseMove({x: 400, y: 100}) //Reaches the svg
.perform();
browser.sleep(1000);
browser.actions().mouseUp().perform();
However, after the draggable element is positioned on the SVG, there seems to be a problem. Even though I can see the element in the correct spot at that moment, it doesn't actually get dropped. It just disappears suddenly without any further action.
What could be causing this issue? Is there a more reliable method in Protractor for successfully dragging and dropping elements?