Fix comments on Java Actions.moveToElement
According to step 1,
the element center point is calculated by getClientRects.
@@ -351,7 +351,7 @@ public Actions doubleClick() {
/**
* Moves the mouse to the middle of the element. The element is scrolled into view and its
- * location is calculated using getBoundingClientRect.
+ * location is calculated using getClientRects.
* @param target element to move to.
* @return A self reference.
*/
@@ -365,7 +365,7 @@ public Actions moveToElement(WebElement target) {
/**
* Moves the mouse to an offset from the center of the element.
- * The element is scrolled into view and its location is calculated using getBoundingClientRect.
+ * The element is scrolled into view and its location is calculated using getClientRects.
* @param target element to move to.
* @param xOffset Offset from the center. A negative value means coordinates left from
* the element.
