OpenQA.Selenium.Remote.RenderedRemoteWebElement.DragAndDropOn C# (CSharp) Method

DragAndDropOn() public method

Drag and Drop an element to another element
public DragAndDropOn ( IRenderedWebElement element ) : void
element IRenderedWebElement Element you wish to drop on
return void
        public void DragAndDropOn(IRenderedWebElement element)
        {
            Point currentLocation = Location;
            Point destination = element.Location;
            DragAndDropBy(destination.X - currentLocation.X, destination.Y - currentLocation.Y);
        }