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

Method MoveToElement

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

Moves the mouse to the specified element. The element to which to move the mouse. A self-reference to this . If is null.

(IWebElement toElement)

Source from the content-addressed store, hash-verified

413 /// <returns>A self-reference to this <see cref="Actions"/>.</returns>
414 /// <exception cref="ArgumentNullException">If <paramref name="toElement"/> is null.</exception>
415 public Actions MoveToElement(IWebElement toElement)
416 {
417 if (toElement == null)
418 {
419 throw new ArgumentException("MoveToElement cannot move to a null element with no offset.", nameof(toElement));
420 }
421
422 return this.MoveToElement(toElement, 0, 0);
423 }
424
425 /// <summary>
426 /// Moves the mouse to the specified offset of the top-left corner of the specified element.

Calls 3

GetActivePointerMethod · 0.95
CreatePointerMoveMethod · 0.80
AddActionMethod · 0.45