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

Method MoveToLocation

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

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)

Source from the content-addressed store, hash-verified

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.

Callers 1

ShouldMoveToLocationMethod · 0.80

Calls 3

GetActivePointerMethod · 0.95
CreatePointerMoveMethod · 0.80
AddActionMethod · 0.45

Tested by 1

ShouldMoveToLocationMethod · 0.64