MCPcopy Create free account
hub / github.com/SeleniumHQ/selenium / MoveByOffset

Method MoveByOffset

dotnet/src/webdriver/Interactions/Actions.cs:445–449  ·  view source on GitHub ↗

Moves the mouse to the specified offset of the last known mouse coordinates. 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)

Source from the content-addressed store, hash-verified

443 /// <param name="offsetY">The vertical offset to which to move the mouse.</param>
444 /// <returns>A self-reference to this <see cref="Actions"/>.</returns>
445 public Actions MoveByOffset(int offsetX, int offsetY)
446 {
447 this.actionBuilder.AddAction(this.GetActivePointer().CreatePointerMove(CoordinateOrigin.Pointer, offsetX, offsetY, duration));
448 return this;
449 }
450
451 /// <summary>
452 /// Moves the mouse from the upper left corner of the current viewport by the provided offset.

Calls 3

GetActivePointerMethod · 0.95
CreatePointerMoveMethod · 0.80
AddActionMethod · 0.45