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)
| 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. |