Simulate dragging the mouse.
Drag positions the mouse over the control under test at the specified startPoint and then presses the left mouse button. It then moves the mouse to each point specified in the points array. Finally the left button is released.
Exception Type | Condition |
---|---|
ArgumentNullException | When points is null. |
ArgumentException | When points does not contain any elements. |
using (MouseController mouse = new MouseControler(myTestControl)) { mouse.Drag(new PointF(0,0), new Point(100, 100)); }
MouseController Class | NUnit.Extensions.Forms Namespace | MouseController.Drag Overload List