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

DragAndDropBy() public method

Move to an element, MouseDown on the element and move it by passing in the how many pixels horizontally and vertically you wish to move it
public DragAndDropBy ( int moveRightBy, int moveDownBy ) : void
moveRightBy int Integer to move it left or right
moveDownBy int Integer to move it up or down
return void
        public void DragAndDropBy(int moveRightBy, int moveDownBy)
        {
            Dictionary<string, object> parameters = new Dictionary<string, object>();
            parameters.Add("id", Id);
            Parent.Execute(DriverCommand.DragElement, new object[] { parameters, moveRightBy, moveDownBy });
        }