Moves the mouse from the upper left corner of the current viewport by the provided offset. The horizontal offset to which to move the mouse. The vertical offset to which to move the mouse. A self-reference to this .
(int offsetX, int offsetY)
| 455 | /// <param name="offsetY">The vertical offset to which to move the mouse.</param> |
| 456 | /// <returns>A self-reference to this <see cref="Actions"/>.</returns> |
| 457 | public Actions MoveToLocation(int offsetX, int offsetY) |
| 458 | { |
| 459 | this.actionBuilder.AddAction(this.GetActivePointer().CreatePointerMove(CoordinateOrigin.Viewport, offsetX, offsetY, duration)); |
| 460 | return this; |
| 461 | } |
| 462 | |
| 463 | /// <summary> |
| 464 | /// Right-clicks the mouse on the specified element. |